#ba7adc
a light, vivid violet · warm · closest name: orchid
RGB
186, 122, 220
HSL
279°, 58%, 67%
CMYK
16, 45, 0, 14
Luminance
0.2953
Every format
| HEX | #ba7adc |
| RGB | rgb(186, 122, 220) |
| HSL | hsl(279, 58%, 67%) |
| CMYK | cmyk(16%, 45%, 0%, 14%) |
| LAB | lab(61.2 42.1 -40.5) |
| LCH | lch(61.2 58.4 316.2) |
| OKLCH | oklch(0.683 0.154 313.0) |
Copy-ready code
/* CSS */
color: #ba7adc;
background-color: #ba7adc;
/* Tailwind (arbitrary) */
class="text-[#ba7adc] bg-[#ba7adc]"
/* SCSS */
$brand: #ba7adc;
/* SwiftUI */
Color(red: 0.729, green: 0.478, blue: 0.863)
/* Android */
Color.parseColor("#ba7adc")Accessibility — WCAG contrast
Aa
#ba7adc on white: 3.04:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#ba7adc on black: 6.91:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green47.8%
Blue86.3%
CMYK percentages
Cyan15.5%
Magenta44.5%
Yellow0.0%
Key (black)13.7%
Color previews
#ba7adc text on a black background
contrast 6.91:1
Card sample
#ba7adc text on a white background
contrast 3.04:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ba7adc;
Background color
Panel with #ba7adc background
background-color: #ba7adc;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ba7adc;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 122, 220, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 122, 220, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba7adc; background: linear-gradient(135deg, #ba7adc, #DC7ABD);