Skip to content
Vectorlight.net

#5402be

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

HEX
#5402be
RGB
84, 2, 190
HSL
266.17°, 97.92%, 37.65%
OKLCH
0.42 0.23 289.67
Names
—
Lists

Codes

FormatValue
HEX#5402be
RGBrgb(84 2 190)
HSLhsl(266.17 97.92% 37.65%)
OKLCHoklch(0.42 0.23 289.67)
CMYKcmyk(55.79% 98.95% 0% 25.49%)
Android#ff5402be

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #5402be;
background-color: #5402be;
bg-[#5402be]