#a940cb
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 | #a940cb | |
| RGB | rgb(169 64 203) | |
| HSL | hsl(285.32 57.2% 52.35%) | |
| OKLCH | oklch(0.57 0.22 316.69) | |
| CMYK | cmyk(16.75% 68.47% 0% 20.39%) | |
| Android | #ffa940cb |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
4.90:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
4.28:1
Fail AA normal text
Pass AA large text
On black #000000 · Best text #ffffff
Shades & tints
OKLCH lightness, mixed toward white then black.
Harmonies
Complementary
Analogous
Triadic
Color-blindness
Normal
Protanopia
Deuteranopia
Tritanopia
SVG snippets
fill
fill="#a940cb"
Gradient stop
<stop stop-color="#a940cb"/>
CSS variable + fill
:root { --c: #a940cb; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #a940cb; background-color: #a940cb; bg-[#a940cb]