Skip to content
Vectorlight.net

#840eda

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

HEX
#840eda
RGB
132, 14, 218
HSL
274.71°, 87.93%, 45.49%
OKLCH
0.5 0.26 302.3
Names
—
Lists

Codes

FormatValue
HEX#840eda
RGBrgb(132 14 218)
HSLhsl(274.71 87.93% 45.49%)
OKLCHoklch(0.5 0.26 302.3)
CMYKcmyk(39.45% 93.58% 0% 14.51%)
Android#ff840eda

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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