#af46cc
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 | #af46cc | |
| RGB | rgb(175 70 204) | |
| HSL | hsl(287.01 56.78% 53.73%) | |
| OKLCH | oklch(0.59 0.21 318.2) | |
| CMYK | cmyk(14.22% 65.69% 0% 20%) | |
| Android | #ffaf46cc |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
4.59:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
4.57: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="#af46cc"
Gradient stop
<stop stop-color="#af46cc"/>
CSS variable + fill
:root { --c: #af46cc; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #af46cc; background-color: #af46cc; bg-[#af46cc]