#ba78ea
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 | #ba78ea | |
| RGB | rgb(186 120 234) | |
| HSL | hsl(274.74 73.08% 69.41%) | |
| OKLCH | oklch(0.69 0.17 309.27) | |
| CMYK | cmyk(20.51% 48.72% 0% 8.24%) | |
| Android | #ffba78ea |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
3.01:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
6.96: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="#ba78ea"
Gradient stop
<stop stop-color="#ba78ea"/>
CSS variable + fill
:root { --c: #ba78ea; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #ba78ea; background-color: #ba78ea; bg-[#ba78ea]