#c42ae2
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 | #c42ae2 | |
| RGB | rgb(196 42 226) | |
| HSL | hsl(290.22 76.03% 52.55%) | |
| OKLCH | oklch(0.61 0.27 320.16) | |
| CMYK | cmyk(13.27% 81.42% 0% 11.37%) | |
| Android | #ffc42ae2 |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
4.39:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
4.77: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="#c42ae2"
Gradient stop
<stop stop-color="#c42ae2"/>
CSS variable + fill
:root { --c: #c42ae2; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #c42ae2; background-color: #c42ae2; bg-[#c42ae2]