#8a18bb
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 | #8a18bb | |
| RGB | rgb(138 24 187) | |
| HSL | hsl(281.96 77.25% 41.37%) | |
| OKLCH | oklch(0.49 0.23 311.9) | |
| CMYK | cmyk(26.2% 87.17% 0% 26.67%) | |
| Android | #ff8a18bb |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
7.16:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
2.92: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="#8a18bb"
Gradient stop
<stop stop-color="#8a18bb"/>
CSS variable + fill
:root { --c: #8a18bb; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #8a18bb; background-color: #8a18bb; bg-[#8a18bb]