#a840eb
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 | #a840eb | |
| RGB | rgb(168 64 235) | |
| HSL | hsl(276.49 81.04% 58.63%) | |
| OKLCH | oklch(0.6 0.25 308.32) | |
| CMYK | cmyk(28.51% 72.77% 0% 7.84%) | |
| Android | #ffa840eb |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
4.56:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
4.59: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="#a840eb"
Gradient stop
<stop stop-color="#a840eb"/>
CSS variable + fill
:root { --c: #a840eb; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #a840eb; background-color: #a840eb; bg-[#a840eb]