#ca31db
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 | #ca31db | |
| RGB | rgb(202 49 219) | |
| HSL | hsl(294 70.25% 52.55%) | |
| OKLCH | oklch(0.62 0.26 323.48) | |
| CMYK | cmyk(7.76% 77.63% 0% 14.12%) | |
| Android | #ffca31db |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
4.22:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
4.97: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="#ca31db"
Gradient stop
<stop stop-color="#ca31db"/>
CSS variable + fill
:root { --c: #ca31db; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #ca31db; background-color: #ca31db; bg-[#ca31db]