#a021b8
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 | #a021b8 | |
| RGB | rgb(160 33 184) | |
| HSL | hsl(290.46 69.59% 42.55%) | |
| OKLCH | oklch(0.52 0.23 320.4) | |
| CMYK | cmyk(13.04% 82.07% 0% 27.84%) | |
| Android | #ffa021b8 |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
6.16:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
3.40: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="#a021b8"
Gradient stop
<stop stop-color="#a021b8"/>
CSS variable + fill
:root { --c: #a021b8; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #a021b8; background-color: #a021b8; bg-[#a021b8]