Skip to content
Vectorlight.net

#540266

Codes, contrast, shades, harmonies and SVG snippets for this color.

HEX
#540266
RGB
84, 2, 102
HSL
289.2°, 96.15%, 20.39%
OKLCH
0.33 0.16 318.63
Names
—
Lists

Codes

FormatValue
HEX#540266
RGBrgb(84 2 102)
HSLhsl(289.2 96.15% 20.39%)
OKLCHoklch(0.33 0.16 318.63)
CMYKcmyk(17.65% 98.04% 0% 60%)
Android#ff540266

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
13.31:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
1.57:1
Fail AA normal text
Fail AA large text
On black #000000 · Best text #ffffff

Open in contrast checker

Shades & tints

OKLCH lightness, mixed toward white then black.

Open in shades & tints

Harmonies

Complementary

Analogous

Triadic

Open in palette generator

Color-blindness

Normal
Protanopia
Deuteranopia
Tritanopia

Open simulator

SVG snippets

fill
fill="#540266"
Gradient stop
<stop stop-color="#540266"/>
CSS variable + fill
:root { --c: #540266; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

color / background
color: #540266;
background-color: #540266;
bg-[#540266]