#af47cb
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 | #af47cb | |
| RGB | rgb(175 71 203) | |
| HSL | hsl(287.27 55.93% 53.73%) | |
| OKLCH | oklch(0.59 0.21 318.43) | |
| CMYK | cmyk(13.79% 65.02% 0% 20.39%) | |
| Android | #ffaf47cb |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
4.57:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
4.58: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="#af47cb"
Gradient stop
<stop stop-color="#af47cb"/>
CSS variable + fill
:root { --c: #af47cb; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #af47cb; background-color: #af47cb; bg-[#af47cb]