#c170e4
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 | #c170e4 | |
| RGB | rgb(193 112 228) | |
| HSL | hsl(281.9 68.24% 66.67%) | |
| OKLCH | oklch(0.68 0.18 314.78) | |
| CMYK | cmyk(15.35% 50.88% 0% 10.59%) | |
| Android | #ffc170e4 |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
3.13:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
6.70: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="#c170e4"
Gradient stop
<stop stop-color="#c170e4"/>
CSS variable + fill
:root { --c: #c170e4; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #c170e4; background-color: #c170e4; bg-[#c170e4]