#cd04d4
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 | #cd04d4 | |
| RGB | rgb(205 4 212) | |
| HSL | hsl(297.98 96.3% 42.35%) | |
| OKLCH | oklch(0.6 0.28 326.54) | |
| CMYK | cmyk(3.3% 98.11% 0% 16.86%) | |
| Android | #ffcd04d4 |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
4.60:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
4.56: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="#cd04d4"
Gradient stop
<stop stop-color="#cd04d4"/>
CSS variable + fill
:root { --c: #cd04d4; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #cd04d4; background-color: #cd04d4; bg-[#cd04d4]