#b51497
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 | #b51497 | |
| RGB | rgb(181 20 151) | |
| HSL | hsl(311.18 80.1% 39.41%) | |
| OKLCH | oklch(0.53 0.22 338.08) | |
| CMYK | cmyk(0% 88.95% 16.57% 29.02%) | |
| Android | #ffb51497 |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
5.98:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
3.51: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="#b51497"
Gradient stop
<stop stop-color="#b51497"/>
CSS variable + fill
:root { --c: #b51497; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #b51497; background-color: #b51497; bg-[#b51497]