Skip to content
Vectorlight.net

#d4118d

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

HEX
#d4118d
RGB
212, 17, 141
HSL
321.85°, 85.15%, 44.9%
OKLCH
0.58 0.23 349.86
Names
—
Lists

Codes

FormatValue
HEX#d4118d
RGBrgb(212 17 141)
HSLhsl(321.85 85.15% 44.9%)
OKLCHoklch(0.58 0.23 349.86)
CMYKcmyk(0% 91.98% 33.49% 16.86%)
Android#ffd4118d

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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