Skip to content
Vectorlight.net

#b22cea

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

HEX
#b22cea
RGB
178, 44, 234
HSL
282.32°, 81.9%, 54.51%
OKLCH
0.59 0.27 312.86
Names
—
Lists

Codes

FormatValue
HEX#b22cea
RGBrgb(178 44 234)
HSLhsl(282.32 81.9% 54.51%)
OKLCHoklch(0.59 0.27 312.86)
CMYKcmyk(23.93% 81.2% 0% 8.24%)
Android#ffb22cea

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #b22cea;
background-color: #b22cea;
bg-[#b22cea]