Skip to content
Vectorlight.net

#840ace

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

HEX
#840ace
RGB
132, 10, 206
HSL
277.35°, 90.74%, 42.35%
OKLCH
0.49 0.25 305.18
Names
—
Lists

Codes

FormatValue
HEX#840ace
RGBrgb(132 10 206)
HSLhsl(277.35 90.74% 42.35%)
OKLCHoklch(0.49 0.25 305.18)
CMYKcmyk(35.92% 95.15% 0% 19.22%)
Android#ff840ace

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #840ace;
background-color: #840ace;
bg-[#840ace]