Skip to content
Vectorlight.net

#540eac

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

HEX
#540eac
RGB
84, 14, 172
HSL
266.58°, 84.95%, 36.47%
OKLCH
0.4 0.21 293.24
Names
—
Lists

Codes

FormatValue
HEX#540eac
RGBrgb(84 14 172)
HSLhsl(266.58 84.95% 36.47%)
OKLCHoklch(0.4 0.21 293.24)
CMYKcmyk(51.16% 91.86% 0% 32.55%)
Android#ff540eac

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
10.31:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
2.03: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="#540eac"
Gradient stop
<stop stop-color="#540eac"/>
CSS variable + fill
:root { --c: #540eac; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

color / background
color: #540eac;
background-color: #540eac;
bg-[#540eac]