#ba7ceb
a light, vivid violet · warm · closest name: orchid
RGB
186, 124, 235
HSL
274°, 74%, 70%
CMYK
21, 47, 0, 8
Luminance
0.3085
Every format
| HEX | #ba7ceb |
| RGB | rgb(186, 124, 235) |
| HSL | hsl(274, 74%, 70%) |
| CMYK | cmyk(21%, 47%, 0%, 8%) |
| LAB | lab(62.4 44.3 -47.0) |
| LCH | lch(62.4 64.6 313.3) |
| OKLCH | oklch(0.694 0.168 308.4) |
Copy-ready code
/* CSS */
color: #ba7ceb;
background-color: #ba7ceb;
/* Tailwind (arbitrary) */
class="text-[#ba7ceb] bg-[#ba7ceb]"
/* SCSS */
$brand: #ba7ceb;
/* SwiftUI */
Color(red: 0.729, green: 0.486, blue: 0.922)
/* Android */
Color.parseColor("#ba7ceb")Accessibility — WCAG contrast
Aa
#ba7ceb on white: 2.93:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ba7ceb on black: 7.17:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green48.6%
Blue92.2%
CMYK percentages
Cyan20.9%
Magenta47.2%
Yellow0.0%
Key (black)7.8%
Color previews
#ba7ceb text on a black background
contrast 7.17:1
Card sample
#ba7ceb text on a white background
contrast 2.93:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ba7ceb;
Background color
Panel with #ba7ceb background
background-color: #ba7ceb;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ba7ceb;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 124, 235, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 124, 235, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba7ceb; background: linear-gradient(135deg, #ba7ceb, #EB7CD2);