Skip to content
Vectorlight.net

#d02fab

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

HEX
#d02fab
RGB
208, 47, 171
HSL
313.79°, 63.14%, 50%
OKLCH
0.6 0.23 339.36
Names
—
Lists

Codes

FormatValue
HEX#d02fab
RGBrgb(208 47 171)
HSLhsl(313.79 63.14% 50%)
OKLCHoklch(0.6 0.23 339.36)
CMYKcmyk(0% 77.4% 17.79% 18.43%)
Android#ffd02fab

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
4.49:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
4.67:1
Pass AA normal text
Pass AA large text
On black #000000 · Best text #000000

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="#d02fab"
Gradient stop
<stop stop-color="#d02fab"/>
CSS variable + fill
:root { --c: #d02fab; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

color / background
color: #d02fab;
background-color: #d02fab;
bg-[#d02fab]