Skip to content
Vectorlight.net

#5a51bf

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

HEX
#5a51bf
RGB
90, 81, 191
HSL
244.91°, 46.22%, 53.33%
OKLCH
0.5 0.17 282.32
Names
—
Lists

Codes

FormatValue
HEX#5a51bf
RGBrgb(90 81 191)
HSLhsl(244.91 46.22% 53.33%)
OKLCHoklch(0.5 0.17 282.32)
CMYKcmyk(52.88% 57.59% 0% 25.1%)
Android#ff5a51bf

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #5a51bf;
background-color: #5a51bf;
bg-[#5a51bf]