#ba20df
a balanced, vivid violet · warm · closest name: magenta
RGB
186, 32, 223
HSL
288°, 75%, 50%
CMYK
17, 86, 0, 13
Luminance
0.1680
Every format
| HEX | #ba20df |
| RGB | rgb(186, 32, 223) |
| HSL | hsl(288, 75%, 50%) |
| CMYK | cmyk(17%, 86%, 0%, 13%) |
| LAB | lab(48.0 79.3 -63.3) |
| LCH | lch(48.0 101.5 321.4) |
| OKLCH | oklch(0.588 0.268 318.2) |
Copy-ready code
/* CSS */
color: #ba20df;
background-color: #ba20df;
/* Tailwind (arbitrary) */
class="text-[#ba20df] bg-[#ba20df]"
/* SCSS */
$brand: #ba20df;
/* SwiftUI */
Color(red: 0.729, green: 0.125, blue: 0.875)
/* Android */
Color.parseColor("#ba20df")Accessibility — WCAG contrast
Aa
#ba20df on white: 4.82:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#ba20df on black: 4.36:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green12.5%
Blue87.5%
CMYK percentages
Cyan16.6%
Magenta85.7%
Yellow0.0%
Key (black)12.5%
Color previews
#ba20df text on a black background
contrast 4.36:1
Card sample
#ba20df text on a white background
contrast 4.82:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ba20df;
Background color
Panel with #ba20df background
background-color: #ba20df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ba20df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 32, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 32, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba20df; background: linear-gradient(135deg, #ba20df, #DF2085);