Skip to content
Vectorlight.net

#d7042e

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

HEX
#d7042e
RGB
215, 4, 46
HSL
348.06°, 96.35%, 42.94%
OKLCH
0.56 0.22 22.69
Names
—
Lists

Codes

FormatValue
HEX#d7042e
RGBrgb(215 4 46)
HSLhsl(348.06 96.35% 42.94%)
OKLCHoklch(0.56 0.22 22.69)
CMYKcmyk(0% 98.14% 78.6% 15.69%)
Android#ffd7042e

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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