Skip to content
Vectorlight.net

#402a2d

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

HEX
#402a2d
RGB
64, 42, 45
HSL
351.82°, 20.75%, 20.78%
OKLCH
0.31 0.03 10.15
Names
—
Lists

Codes

FormatValue
HEX#402a2d
RGBrgb(64 42 45)
HSLhsl(351.82 20.75% 20.78%)
OKLCHoklch(0.31 0.03 10.15)
CMYKcmyk(0% 34.38% 29.69% 74.9%)
Android#ff402a2d

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #402a2d;
background-color: #402a2d;
bg-[#402a2d]