Skip to content
Vectorlight.net

#d40682

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

HEX
#d40682
RGB
212, 6, 130
HSL
323.88°, 94.5%, 42.75%
OKLCH
0.57 0.23 353.55
Names
—
Lists

Codes

FormatValue
HEX#d40682
RGBrgb(212 6 130)
HSLhsl(323.88 94.5% 42.75%)
OKLCHoklch(0.57 0.23 353.55)
CMYKcmyk(0% 97.17% 38.68% 16.86%)
Android#ffd40682

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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