#cc0caa
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 | #cc0caa | |
| RGB | rgb(204 12 170) | |
| HSL | hsl(310.63 88.89% 42.35%) | |
| OKLCH | oklch(0.58 0.25 338.13) | |
| CMYK | cmyk(0% 94.12% 16.67% 20%) | |
| Android | #ffcc0caa |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
4.99:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
4.20: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="#cc0caa"
Gradient stop
<stop stop-color="#cc0caa"/>
CSS variable + fill
:root { --c: #cc0caa; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #cc0caa; background-color: #cc0caa; bg-[#cc0caa]