Skip to content
Vectorlight.net

#540abc

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

HEX
#540abc
RGB
84, 10, 188
HSL
264.94°, 89.9%, 38.82%
OKLCH
0.42 0.23 289.81
Names
—
Lists

Codes

FormatValue
HEX#540abc
RGBrgb(84 10 188)
HSLhsl(264.94 89.9% 38.82%)
OKLCHoklch(0.42 0.23 289.81)
CMYKcmyk(55.32% 94.68% 0% 26.27%)
Android#ff540abc

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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