#b21dcd
Codes, contrast, shades, harmonies and SVG snippets for this color.
- Codes
- Names & lists
- Contrast
- Shades & tints
- Harmonies
- Color-blindness
- SVG snippets
- CSS
- Related colors
Codes
| Format | Value | |
|---|---|---|
| HEX | #b21dcd | |
| RGB | rgb(178 29 205) | |
| HSL | hsl(290.8 75.21% 45.88%) | |
| OKLCH | oklch(0.56 0.25 320.47) | |
| CMYK | cmyk(13.17% 85.85% 0% 19.61%) | |
| Android | #ffb21dcd |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
5.31:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
3.95:1
Fail AA normal text
Pass AA large text
On black #000000 · Best text #ffffff
Shades & tints
OKLCH lightness, mixed toward white then black.
Harmonies
Complementary
Analogous
Triadic
Color-blindness
Normal
Protanopia
Deuteranopia
Tritanopia
SVG snippets
fill
fill="#b21dcd"
Gradient stop
<stop stop-color="#b21dcd"/>
CSS variable + fill
:root { --c: #b21dcd; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #b21dcd; background-color: #b21dcd; bg-[#b21dcd]