Skip to content
Vectorlight.net

#d9142a

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

HEX
#d9142a
RGB
217, 20, 42
HSL
353.3°, 83.12%, 46.47%
OKLCH
0.56 0.22 24.58
Names
—
Lists

Codes

FormatValue
HEX#d9142a
RGBrgb(217 20 42)
HSLhsl(353.3 83.12% 46.47%)
OKLCHoklch(0.56 0.22 24.58)
CMYKcmyk(0% 90.78% 80.65% 14.9%)
Android#ffd9142a

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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