Skip to content
Vectorlight.net

#e4172a

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

HEX
#e4172a
RGB
228, 23, 42
HSL
354.44°, 81.67%, 49.22%
OKLCH
0.58 0.23 25.24
Names
—
Lists

Codes

FormatValue
HEX#e4172a
RGBrgb(228 23 42)
HSLhsl(354.44 81.67% 49.22%)
OKLCHoklch(0.58 0.23 25.24)
CMYKcmyk(0% 89.91% 81.58% 10.59%)
Android#ffe4172a

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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