Skip to content
Vectorlight.net

#400772

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

HEX
#400772
RGB
64, 7, 114
HSL
271.96°, 88.43%, 23.73%
OKLCH
0.31 0.16 300.3
Names
—
Lists

Codes

FormatValue
HEX#400772
RGBrgb(64 7 114)
HSLhsl(271.96 88.43% 23.73%)
OKLCHoklch(0.31 0.16 300.3)
CMYKcmyk(43.86% 93.86% 0% 55.29%)
Android#ff400772

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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