#ba7cdf
a light, vivid violet · warm · closest name: orchid
RGB
186, 124, 223
HSL
278°, 61%, 68%
CMYK
17, 44, 0, 13
Luminance
0.3018
Every format
| HEX | #ba7cdf |
| RGB | rgb(186, 124, 223) |
| HSL | hsl(278, 61%, 68%) |
| CMYK | cmyk(17%, 44%, 0%, 13%) |
| LAB | lab(61.8 41.7 -41.3) |
| LCH | lch(61.8 58.7 315.3) |
| OKLCH | oklch(0.688 0.154 311.8) |
Copy-ready code
/* CSS */
color: #ba7cdf;
background-color: #ba7cdf;
/* Tailwind (arbitrary) */
class="text-[#ba7cdf] bg-[#ba7cdf]"
/* SCSS */
$brand: #ba7cdf;
/* SwiftUI */
Color(red: 0.729, green: 0.486, blue: 0.875)
/* Android */
Color.parseColor("#ba7cdf")Accessibility — WCAG contrast
Aa
#ba7cdf on white: 2.98:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ba7cdf on black: 7.04:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green48.6%
Blue87.5%
CMYK percentages
Cyan16.6%
Magenta44.4%
Yellow0.0%
Key (black)12.5%
Color previews
#ba7cdf text on a black background
contrast 7.04:1
Card sample
#ba7cdf text on a white background
contrast 2.98:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ba7cdf;
Background color
Panel with #ba7cdf background
background-color: #ba7cdf;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ba7cdf;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 124, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 124, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba7cdf; background: linear-gradient(135deg, #ba7cdf, #DF7CC2);