Skip to content
Vectorlight.net

#a7142a

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

HEX
#a7142a
RGB
167, 20, 42
HSL
351.02°, 78.61%, 36.67%
OKLCH
0.47 0.18 21.36
Names
—
Lists

Codes

FormatValue
HEX#a7142a
RGBrgb(167 20 42)
HSLhsl(351.02 78.61% 36.67%)
OKLCHoklch(0.47 0.18 21.36)
CMYKcmyk(0% 88.02% 74.85% 34.51%)
Android#ffa7142a

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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