Skip to content
Vectorlight.net

#662ecc

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

HEX
#662ecc
RGB
102, 46, 204
HSL
261.27°, 63.2%, 49.02%
OKLCH
0.48 0.22 291.7
Names
—
Lists

Codes

FormatValue
HEX#662ecc
RGBrgb(102 46 204)
HSLhsl(261.27 63.2% 49.02%)
OKLCHoklch(0.48 0.22 291.7)
CMYKcmyk(50% 77.45% 0% 20%)
Android#ff662ecc

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #662ecc;
background-color: #662ecc;
bg-[#662ecc]