#bab8f2
a light, vivid blue · warm · closest name: plum
RGB
186, 184, 242
HSL
242°, 69%, 84%
CMYK
23, 24, 0, 5
Luminance
0.5113
Every format
| HEX | #bab8f2 |
| RGB | rgb(186, 184, 242) |
| HSL | hsl(242, 69%, 84%) |
| CMYK | cmyk(23%, 24%, 0%, 5%) |
| LAB | lab(76.8 12.8 -28.5) |
| LCH | lch(76.8 31.2 294.2) |
| OKLCH | oklch(0.804 0.082 286.0) |
Copy-ready code
/* CSS */
color: #bab8f2;
background-color: #bab8f2;
/* Tailwind (arbitrary) */
class="text-[#bab8f2] bg-[#bab8f2]"
/* SCSS */
$brand: #bab8f2;
/* SwiftUI */
Color(red: 0.729, green: 0.722, blue: 0.949)
/* Android */
Color.parseColor("#bab8f2")Accessibility — WCAG contrast
Aa
#bab8f2 on white: 1.87:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#bab8f2 on black: 11.23:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green72.2%
Blue94.9%
CMYK percentages
Cyan23.1%
Magenta24.0%
Yellow0.0%
Key (black)5.1%
Color previews
#bab8f2 text on a black background
contrast 11.23:1
Card sample
#bab8f2 text on a white background
contrast 1.87:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #bab8f2;
Background color
Panel with #bab8f2 background
background-color: #bab8f2;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #bab8f2;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 184, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 184, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bab8f2; background: linear-gradient(135deg, #bab8f2, #E1B8F2);