#b542ff
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 | #b542ff | |
| RGB | rgb(181 66 255) | |
| HSL | hsl(276.51 100% 62.94%) | |
| OKLCH | oklch(0.63 0.26 308.1) | |
| CMYK | cmyk(29.02% 74.12% 0% 0%) | |
| Android | #ffb542ff |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
4.04:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
5.18: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="#b542ff"
Gradient stop
<stop stop-color="#b542ff"/>
CSS variable + fill
:root { --c: #b542ff; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #b542ff; background-color: #b542ff; bg-[#b542ff]