#cc31da
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 | #cc31da | |
| RGB | rgb(204 49 218) | |
| HSL | hsl(295.03 69.55% 52.35%) | |
| OKLCH | oklch(0.62 0.26 324.3) | |
| CMYK | cmyk(6.42% 77.52% 0% 14.51%) | |
| Android | #ffcc31da |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
4.18:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
5.01: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="#cc31da"
Gradient stop
<stop stop-color="#cc31da"/>
CSS variable + fill
:root { --c: #cc31da; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #cc31da; background-color: #cc31da; bg-[#cc31da]