Skip to content
Vectorlight.net

#42407a

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

HEX
#42407a
RGB
66, 64, 122
HSL
242.07°, 31.18%, 36.47%
OKLCH
0.4 0.1 282.79
Names
—
Lists

Codes

FormatValue
HEX#42407a
RGBrgb(66 64 122)
HSLhsl(242.07 31.18% 36.47%)
OKLCHoklch(0.4 0.1 282.79)
CMYKcmyk(45.9% 47.54% 0% 52.16%)
Android#ff42407a

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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