#dc40cd
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 | #dc40cd | |
| RGB | rgb(220 64 205) | |
| HSL | hsl(305.77 69.03% 55.69%) | |
| OKLCH | oklch(0.65 0.24 332.21) | |
| CMYK | cmyk(0% 70.91% 6.82% 13.73%) | |
| Android | #ffdc40cd |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
3.71:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
5.65: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="#dc40cd"
Gradient stop
<stop stop-color="#dc40cd"/>
CSS variable + fill
:root { --c: #dc40cd; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #dc40cd; background-color: #dc40cd; bg-[#dc40cd]