#ca87fb
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 | #ca87fb | |
| RGB | rgb(202 135 251) | |
| HSL | hsl(274.66 93.55% 75.69%) | |
| OKLCH | oklch(0.74 0.17 309.38) | |
| CMYK | cmyk(19.52% 46.22% 0% 1.57%) | |
| Android | #ffca87fb |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
2.50:1
Fail AA normal text
Fail AA large text
On white #ffffff
Aa
8.36: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="#ca87fb"
Gradient stop
<stop stop-color="#ca87fb"/>
CSS variable + fill
:root { --c: #ca87fb; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #ca87fb; background-color: #ca87fb; bg-[#ca87fb]