#bab1f2
a light, vivid blue · warm · closest name: plum
RGB
186, 177, 242
HSL
248°, 71%, 82%
CMYK
23, 27, 0, 5
Luminance
0.4829
Every format
| HEX | #bab1f2 |
| RGB | rgb(186, 177, 242) |
| HSL | hsl(248, 71%, 82%) |
| CMYK | cmyk(23%, 27%, 0%, 5%) |
| LAB | lab(75.0 16.6 -31.2) |
| LCH | lch(75.0 35.3 298.1) |
| OKLCH | oklch(0.791 0.092 290.5) |
Copy-ready code
/* CSS */
color: #bab1f2;
background-color: #bab1f2;
/* Tailwind (arbitrary) */
class="text-[#bab1f2] bg-[#bab1f2]"
/* SCSS */
$brand: #bab1f2;
/* SwiftUI */
Color(red: 0.729, green: 0.694, blue: 0.949)
/* Android */
Color.parseColor("#bab1f2")Accessibility — WCAG contrast
Aa
#bab1f2 on white: 1.97:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#bab1f2 on black: 10.66:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green69.4%
Blue94.9%
CMYK percentages
Cyan23.1%
Magenta26.9%
Yellow0.0%
Key (black)5.1%
Color previews
#bab1f2 text on a black background
contrast 10.66:1
Card sample
#bab1f2 text on a white background
contrast 1.97:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #bab1f2;
Background color
Panel with #bab1f2 background
background-color: #bab1f2;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #bab1f2;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 177, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 177, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bab1f2; background: linear-gradient(135deg, #bab1f2, #E5B1F2);