#8a51fb
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 | #8a51fb | |
| RGB | rgb(138 81 251) | |
| HSL | hsl(260.12 95.51% 65.1%) | |
| OKLCH | oklch(0.59 0.24 293.13) | |
| CMYK | cmyk(45.02% 67.73% 0% 1.57%) | |
| Android | #ff8a51fb |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
4.51:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
4.65: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="#8a51fb"
Gradient stop
<stop stop-color="#8a51fb"/>
CSS variable + fill
:root { --c: #8a51fb; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #8a51fb; background-color: #8a51fb; bg-[#8a51fb]