#ba38da
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 | #ba38da | |
| RGB | rgb(186 56 218) | |
| HSL | hsl(288.15 68.64% 53.73%) | |
| OKLCH | oklch(0.6 0.24 318.74) | |
| CMYK | cmyk(14.68% 74.31% 0% 14.51%) | |
| Android | #ffba38da |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
4.50:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
4.66: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="#ba38da"
Gradient stop
<stop stop-color="#ba38da"/>
CSS variable + fill
:root { --c: #ba38da; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #ba38da; background-color: #ba38da; bg-[#ba38da]