#ba7cd0
a light, vivid violet · warm · closest name: orchid
RGB
186, 124, 208
HSL
284°, 47%, 65%
CMYK
11, 40, 0, 18
Luminance
0.2941
Every format
| HEX | #ba7cd0 |
| RGB | rgb(186, 124, 208) |
| HSL | hsl(284, 47%, 65%) |
| CMYK | cmyk(11%, 40%, 0%, 18%) |
| LAB | lab(61.1 38.5 -33.9) |
| LCH | lch(61.1 51.3 318.6) |
| OKLCH | oklch(0.681 0.137 316.9) |
Copy-ready code
/* CSS */
color: #ba7cd0;
background-color: #ba7cd0;
/* Tailwind (arbitrary) */
class="text-[#ba7cd0] bg-[#ba7cd0]"
/* SCSS */
$brand: #ba7cd0;
/* SwiftUI */
Color(red: 0.729, green: 0.486, blue: 0.816)
/* Android */
Color.parseColor("#ba7cd0")Accessibility — WCAG contrast
Aa
#ba7cd0 on white: 3.05:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#ba7cd0 on black: 6.88:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green48.6%
Blue81.6%
CMYK percentages
Cyan10.6%
Magenta40.4%
Yellow0.0%
Key (black)18.4%
Color previews
#ba7cd0 text on a black background
contrast 6.88:1
Card sample
#ba7cd0 text on a white background
contrast 3.05:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ba7cd0;
Background color
Panel with #ba7cd0 background
background-color: #ba7cd0;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ba7cd0;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 124, 208, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 124, 208, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba7cd0; background: linear-gradient(135deg, #ba7cd0, #D07CAE);