Skip to content
Vectorlight.net

#642eaf

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

HEX
#642eaf
RGB
100, 46, 175
HSL
265.12°, 58.37%, 43.33%
OKLCH
0.45 0.19 297.05
Names
—
Lists

Codes

FormatValue
HEX#642eaf
RGBrgb(100 46 175)
HSLhsl(265.12 58.37% 43.33%)
OKLCHoklch(0.45 0.19 297.05)
CMYKcmyk(42.86% 73.71% 0% 31.37%)
Android#ff642eaf

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #642eaf;
background-color: #642eaf;
bg-[#642eaf]