Skip to content
Vectorlight.net

#5f008a

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

HEX
#5f008a
RGB
95, 0, 138
HSL
281.3°, 100%, 27.06%
OKLCH
0.38 0.19 309.59
Names
—
Lists

Codes

FormatValue
HEX#5f008a
RGBrgb(95 0 138)
HSLhsl(281.3 100% 27.06%)
OKLCHoklch(0.38 0.19 309.59)
CMYKcmyk(31.16% 100% 0% 45.88%)
Android#ff5f008a

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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