#ba7eee
a light, electric violet · warm · closest name: orchid
RGB
186, 126, 238
HSL
272°, 77%, 71%
CMYK
22, 47, 0, 7
Luminance
0.3153
Every format
| HEX | #ba7eee |
| RGB | rgb(186, 126, 238) |
| HSL | hsl(272, 77%, 71%) |
| CMYK | cmyk(22%, 47%, 0%, 7%) |
| LAB | lab(63.0 43.9 -47.8) |
| LCH | lch(63.0 64.9 312.6) |
| OKLCH | oklch(0.699 0.168 307.3) |
Copy-ready code
/* CSS */
color: #ba7eee;
background-color: #ba7eee;
/* Tailwind (arbitrary) */
class="text-[#ba7eee] bg-[#ba7eee]"
/* SCSS */
$brand: #ba7eee;
/* SwiftUI */
Color(red: 0.729, green: 0.494, blue: 0.933)
/* Android */
Color.parseColor("#ba7eee")Accessibility — WCAG contrast
Aa
#ba7eee on white: 2.87:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ba7eee on black: 7.31:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green49.4%
Blue93.3%
CMYK percentages
Cyan21.8%
Magenta47.1%
Yellow0.0%
Key (black)6.7%
Color previews
#ba7eee text on a black background
contrast 7.31:1
Card sample
#ba7eee text on a white background
contrast 2.87:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ba7eee;
Background color
Panel with #ba7eee background
background-color: #ba7eee;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ba7eee;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 126, 238, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 126, 238, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba7eee; background: linear-gradient(135deg, #ba7eee, #EE7ED7);