#b040d4
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 | #b040d4 | |
| RGB | rgb(176 64 212) | |
| HSL | hsl(285.41 63.25% 54.12%) | |
| OKLCH | oklch(0.59 0.23 316.67) | |
| CMYK | cmyk(16.98% 69.81% 0% 16.86%) | |
| Android | #ffb040d4 |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
4.63:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
4.53:1
Pass 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="#b040d4"
Gradient stop
<stop stop-color="#b040d4"/>
CSS variable + fill
:root { --c: #b040d4; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #b040d4; background-color: #b040d4; bg-[#b040d4]