Skip to content
Vectorlight.net

#d8042e

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

HEX
#d8042e
RGB
216, 4, 46
HSL
348.11°, 96.36%, 43.14%
OKLCH
0.56 0.22 22.75
Names
—
Lists

Codes

FormatValue
HEX#d8042e
RGBrgb(216 4 46)
HSLhsl(348.11 96.36% 43.14%)
OKLCHoklch(0.56 0.22 22.75)
CMYKcmyk(0% 98.15% 78.7% 15.29%)
Android#ffd8042e

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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