#5d22cb
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 | #5d22cb | |
| RGB | rgb(93 34 203) | |
| HSL | hsl(260.95 71.31% 46.47%) | |
| OKLCH | oklch(0.46 0.23 289.3) | |
| CMYK | cmyk(54.19% 83.25% 0% 20.39%) | |
| Android | #ff5d22cb |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
8.21:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
2.55: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="#5d22cb"
Gradient stop
<stop stop-color="#5d22cb"/>
CSS variable + fill
:root { --c: #5d22cb; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #5d22cb; background-color: #5d22cb; bg-[#5d22cb]