#ba40aa
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 | #ba40aa | |
| RGB | rgb(186 64 170) | |
| HSL | hsl(307.87 48.8% 49.02%) | |
| OKLCH | oklch(0.58 0.2 333.43) | |
| CMYK | cmyk(0% 65.59% 8.6% 27.06%) | |
| Android | #ffba40aa |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
4.77:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
4.40: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="#ba40aa"
Gradient stop
<stop stop-color="#ba40aa"/>
CSS variable + fill
:root { --c: #ba40aa; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #ba40aa; background-color: #ba40aa; bg-[#ba40aa]