Skip to content
Vectorlight.net

#d7287c

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

HEX
#d7287c
RGB
215, 40, 124
HSL
331.2°, 68.63%, 50%
OKLCH
0.59 0.22 357.91
Names
—
Lists

Codes

FormatValue
HEX#d7287c
RGBrgb(215 40 124)
HSLhsl(331.2 68.63% 50%)
OKLCHoklch(0.59 0.22 357.91)
CMYKcmyk(0% 81.4% 42.33% 15.69%)
Android#ffd7287c

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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