Skip to content
Vectorlight.net

#b21998

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

HEX
#b21998
RGB
178, 25, 152
HSL
310.2°, 75.37%, 39.8%
OKLCH
0.53 0.22 336.87
Names
—
Lists

Codes

FormatValue
HEX#b21998
RGBrgb(178 25 152)
HSLhsl(310.2 75.37% 39.8%)
OKLCHoklch(0.53 0.22 336.87)
CMYKcmyk(0% 85.96% 14.61% 30.2%)
Android#ffb21998

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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