Skip to content
Vectorlight.net

#b252e4

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

HEX
#b252e4
RGB
178, 82, 228
HSL
279.45°, 73%, 60.78%
OKLCH
0.62 0.22 311.98
Names
—
Lists

Codes

FormatValue
HEX#b252e4
RGBrgb(178 82 228)
HSLhsl(279.45 73% 60.78%)
OKLCHoklch(0.62 0.22 311.98)
CMYKcmyk(21.93% 64.04% 0% 10.59%)
Android#ffb252e4

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
4.02:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
5.22:1
Pass AA normal text
Pass AA large text
On black #000000 · Best text #000000

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="#b252e4"
Gradient stop
<stop stop-color="#b252e4"/>
CSS variable + fill
:root { --c: #b252e4; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

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