#bba6f2
a light, vivid violet · warm · closest name: plum
RGB
187, 166, 242
HSL
257°, 75%, 80%
CMYK
23, 31, 0, 5
Luminance
0.4425
Every format
| HEX | #bba6f2 |
| RGB | rgb(187, 166, 242) |
| HSL | hsl(257, 75%, 80%) |
| CMYK | cmyk(23%, 31%, 0%, 5%) |
| LAB | lab(72.4 23.0 -35.2) |
| LCH | lch(72.4 42.1 303.2) |
| OKLCH | oklch(0.771 0.109 296.5) |
Copy-ready code
/* CSS */
color: #bba6f2;
background-color: #bba6f2;
/* Tailwind (arbitrary) */
class="text-[#bba6f2] bg-[#bba6f2]"
/* SCSS */
$brand: #bba6f2;
/* SwiftUI */
Color(red: 0.733, green: 0.651, blue: 0.949)
/* Android */
Color.parseColor("#bba6f2")Accessibility — WCAG contrast
Aa
#bba6f2 on white: 2.13:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#bba6f2 on black: 9.85:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red73.3%
Green65.1%
Blue94.9%
CMYK percentages
Cyan22.7%
Magenta31.4%
Yellow0.0%
Key (black)5.1%
Color previews
#bba6f2 text on a black background
contrast 9.85:1
Card sample
#bba6f2 text on a white background
contrast 2.13:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #bba6f2;
Background color
Panel with #bba6f2 background
background-color: #bba6f2;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #bba6f2;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(187, 166, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(187, 166, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bba6f2; background: linear-gradient(135deg, #bba6f2, #EEA6F2);