#ba5cf2
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 | #ba5cf2 | |
| RGB | rgb(186 92 242) | |
| HSL | hsl(277.6 85.23% 65.49%) | |
| OKLCH | oklch(0.65 0.22 310.54) | |
| CMYK | cmyk(23.14% 61.98% 0% 5.1%) | |
| Android | #ffba5cf2 |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
3.55:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
5.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="#ba5cf2"
Gradient stop
<stop stop-color="#ba5cf2"/>
CSS variable + fill
:root { --c: #ba5cf2; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #ba5cf2; background-color: #ba5cf2; bg-[#ba5cf2]