#a162ff
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 | #a162ff | |
| RGB | rgb(161 98 255) | |
| HSL | hsl(264.08 100% 69.22%) | |
| OKLCH | oklch(0.64 0.22 298.34) | |
| CMYK | cmyk(36.86% 61.57% 0% 0%) | |
| Android | #ffa162ff |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
3.68:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
5.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="#a162ff"
Gradient stop
<stop stop-color="#a162ff"/>
CSS variable + fill
:root { --c: #a162ff; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #a162ff; background-color: #a162ff; bg-[#a162ff]