Skip to content
Vectorlight.net

#403161

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

HEX
#403161
RGB
64, 49, 97
HSL
258.75°, 32.88%, 28.63%
OKLCH
0.35 0.08 296.37
Names
—
Lists

Codes

FormatValue
HEX#403161
RGBrgb(64 49 97)
HSLhsl(258.75 32.88% 28.63%)
OKLCHoklch(0.35 0.08 296.37)
CMYKcmyk(34.02% 49.48% 0% 61.96%)
Android#ff403161

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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