#cc42bf
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 | #cc42bf | |
| RGB | rgb(204 66 191) | |
| HSL | hsl(305.65 57.5% 52.94%) | |
| OKLCH | oklch(0.62 0.22 331.92) | |
| CMYK | cmyk(0% 67.65% 6.37% 20%) | |
| Android | #ffcc42bf |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
4.11:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
5.09: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="#cc42bf"
Gradient stop
<stop stop-color="#cc42bf"/>
CSS variable + fill
:root { --c: #cc42bf; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #cc42bf; background-color: #cc42bf; bg-[#cc42bf]