#cc7dfa
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 | #cc7dfa | |
| RGB | rgb(204 125 250) | |
| HSL | hsl(277.92 92.59% 73.53%) | |
| OKLCH | oklch(0.72 0.19 311.71) | |
| CMYK | cmyk(18.4% 50% 0% 1.96%) | |
| Android | #ffcc7dfa |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
2.66:1
Fail AA normal text
Fail AA large text
On white #ffffff
Aa
7.88: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="#cc7dfa"
Gradient stop
<stop stop-color="#cc7dfa"/>
CSS variable + fill
:root { --c: #cc7dfa; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #cc7dfa; background-color: #cc7dfa; bg-[#cc7dfa]