#b540dc
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 | #b540dc | |
| RGB | rgb(181 64 220) | |
| HSL | hsl(285 69.03% 55.69%) | |
| OKLCH | oklch(0.6 0.24 316.25) | |
| CMYK | cmyk(17.73% 70.91% 0% 13.73%) | |
| Android | #ffb540dc |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
4.43:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
4.73:1
Pass AA normal text
Pass AA large text
On black #000000 · Best text #000000
Shades & tints
OKLCH lightness, mixed toward white then black.
Harmonies
Complementary
Analogous
Triadic
Color-blindness
Normal
Protanopia
Deuteranopia
Tritanopia
SVG snippets
fill
fill="#b540dc"
Gradient stop
<stop stop-color="#b540dc"/>
CSS variable + fill
:root { --c: #b540dc; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #b540dc; background-color: #b540dc; bg-[#b540dc]