Skip to content
Vectorlight.net

#40147a

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

HEX
#40147a
RGB
64, 20, 122
HSL
265.88°, 71.83%, 27.84%
OKLCH
0.33 0.16 295.93
Names
—
Lists

Codes

FormatValue
HEX#40147a
RGBrgb(64 20 122)
HSLhsl(265.88 71.83% 27.84%)
OKLCHoklch(0.33 0.16 295.93)
CMYKcmyk(47.54% 83.61% 0% 52.16%)
Android#ff40147a

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #40147a;
background-color: #40147a;
bg-[#40147a]