#a42fce
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 | #a42fce | |
| RGB | rgb(164 47 206) | |
| HSL | hsl(284.15 62.85% 49.61%) | |
| OKLCH | oklch(0.55 0.24 315.06) | |
| CMYK | cmyk(20.39% 77.18% 0% 19.22%) | |
| Android | #ffa42fce |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
5.41:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
3.87: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="#a42fce"
Gradient stop
<stop stop-color="#a42fce"/>
CSS variable + fill
:root { --c: #a42fce; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #a42fce; background-color: #a42fce; bg-[#a42fce]