#8a008e
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 | #8a008e | |
| RGB | rgb(138 0 142) | |
| HSL | hsl(298.31 100% 27.84%) | |
| OKLCH | oklch(0.45 0.21 326.87) | |
| CMYK | cmyk(2.82% 100% 0% 44.31%) | |
| Android | #ff8a008e |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
8.49:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
2.47:1
Fail AA normal text
Fail 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="#8a008e"
Gradient stop
<stop stop-color="#8a008e"/>
CSS variable + fill
:root { --c: #8a008e; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #8a008e; background-color: #8a008e; bg-[#8a008e]