#a052eb
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 | #a052eb | |
| RGB | rgb(160 82 235) | |
| HSL | hsl(270.59 79.27% 62.16%) | |
| OKLCH | oklch(0.61 0.22 303.86) | |
| CMYK | cmyk(31.91% 65.11% 0% 7.84%) | |
| Android | #ffa052eb |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
4.28:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
4.90: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="#a052eb"
Gradient stop
<stop stop-color="#a052eb"/>
CSS variable + fill
:root { --c: #a052eb; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #a052eb; background-color: #a052eb; bg-[#a052eb]