#ba7cef
a light, electric violet · warm · closest name: orchid
RGB
186, 124, 239
HSL
272°, 78%, 71%
CMYK
22, 48, 0, 6
Luminance
0.3109
Every format
| HEX | #ba7cef |
| RGB | rgb(186, 124, 239) |
| HSL | hsl(272, 78%, 71%) |
| CMYK | cmyk(22%, 48%, 0%, 6%) |
| LAB | lab(62.6 45.2 -48.9) |
| LCH | lch(62.6 66.6 312.7) |
| OKLCH | oklch(0.696 0.172 307.4) |
Copy-ready code
/* CSS */
color: #ba7cef;
background-color: #ba7cef;
/* Tailwind (arbitrary) */
class="text-[#ba7cef] bg-[#ba7cef]"
/* SCSS */
$brand: #ba7cef;
/* SwiftUI */
Color(red: 0.729, green: 0.486, blue: 0.937)
/* Android */
Color.parseColor("#ba7cef")Accessibility — WCAG contrast
Aa
#ba7cef on white: 2.91:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ba7cef on black: 7.22:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green48.6%
Blue93.7%
CMYK percentages
Cyan22.2%
Magenta48.1%
Yellow0.0%
Key (black)6.3%
Color previews
#ba7cef text on a black background
contrast 7.22:1
Card sample
#ba7cef text on a white background
contrast 2.91:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ba7cef;
Background color
Panel with #ba7cef background
background-color: #ba7cef;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ba7cef;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 124, 239, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 124, 239, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba7cef; background: linear-gradient(135deg, #ba7cef, #EF7CD7);