Skip to content
Vectorlight.net

#51156a

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

HEX
#51156a
RGB
81, 21, 106
HSL
282.35°, 66.93%, 24.9%
OKLCH
0.34 0.14 313.55
Names
—
Lists

Codes

FormatValue
HEX#51156a
RGBrgb(81 21 106)
HSLhsl(282.35 66.93% 24.9%)
OKLCHoklch(0.34 0.14 313.55)
CMYKcmyk(23.58% 80.19% 0% 58.43%)
Android#ff51156a

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #51156a;
background-color: #51156a;
bg-[#51156a]