#ba91df
a light, vivid violet · warm · closest name: plum
RGB
186, 145, 223
HSL
272°, 55%, 72%
CMYK
17, 35, 0, 13
Luminance
0.3602
Every format
| HEX | #ba91df |
| RGB | rgb(186, 145, 223) |
| HSL | hsl(272, 55%, 72%) |
| CMYK | cmyk(17%, 35%, 0%, 13%) |
| LAB | lab(66.5 30.1 -33.9) |
| LCH | lch(66.5 45.4 311.6) |
| OKLCH | oklch(0.724 0.118 307.8) |
Copy-ready code
/* CSS */
color: #ba91df;
background-color: #ba91df;
/* Tailwind (arbitrary) */
class="text-[#ba91df] bg-[#ba91df]"
/* SCSS */
$brand: #ba91df;
/* SwiftUI */
Color(red: 0.729, green: 0.569, blue: 0.875)
/* Android */
Color.parseColor("#ba91df")Accessibility — WCAG contrast
Aa
#ba91df on white: 2.56:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ba91df on black: 8.20:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green56.9%
Blue87.5%
CMYK percentages
Cyan16.6%
Magenta35.0%
Yellow0.0%
Key (black)12.5%
Color previews
#ba91df text on a black background
contrast 8.20:1
Card sample
#ba91df text on a white background
contrast 2.56:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ba91df;
Background color
Panel with #ba91df background
background-color: #ba91df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ba91df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 145, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 145, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba91df; background: linear-gradient(135deg, #ba91df, #DF91D0);