Skip to content
Vectorlight.net

#403e7e

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

HEX
#403e7e
RGB
64, 62, 126
HSL
241.88°, 34.04%, 36.86%
OKLCH
0.4 0.11 281.95
Names
—
Lists

Codes

FormatValue
HEX#403e7e
RGBrgb(64 62 126)
HSLhsl(241.88 34.04% 36.86%)
OKLCHoklch(0.4 0.11 281.95)
CMYKcmyk(49.21% 50.79% 0% 50.59%)
Android#ff403e7e

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #403e7e;
background-color: #403e7e;
bg-[#403e7e]