#5a46bf
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 | #5a46bf | |
| RGB | rgb(90 70 191) | |
| HSL | hsl(249.92 48.59% 51.18%) | |
| OKLCH | oklch(0.49 0.18 285.01) | |
| CMYK | cmyk(52.88% 63.35% 0% 25.1%) | |
| Android | #ff5a46bf |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
6.85:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
3.06:1
Fail AA normal text
Pass 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="#5a46bf"
Gradient stop
<stop stop-color="#5a46bf"/>
CSS variable + fill
:root { --c: #5a46bf; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #5a46bf; background-color: #5a46bf; bg-[#5a46bf]