#bab2f0
a light, vivid blue · warm · closest name: plum
RGB
186, 178, 240
HSL
248°, 67%, 82%
CMYK
23, 26, 0, 6
Luminance
0.4857
Every format
| HEX | #bab2f0 |
| RGB | rgb(186, 178, 240) |
| HSL | hsl(248, 67%, 82%) |
| CMYK | cmyk(23%, 26%, 0%, 6%) |
| LAB | lab(75.2 15.6 -29.8) |
| LCH | lch(75.2 33.7 297.7) |
| OKLCH | oklch(0.792 0.087 290.2) |
Copy-ready code
/* CSS */
color: #bab2f0;
background-color: #bab2f0;
/* Tailwind (arbitrary) */
class="text-[#bab2f0] bg-[#bab2f0]"
/* SCSS */
$brand: #bab2f0;
/* SwiftUI */
Color(red: 0.729, green: 0.698, blue: 0.941)
/* Android */
Color.parseColor("#bab2f0")Accessibility — WCAG contrast
Aa
#bab2f0 on white: 1.96:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#bab2f0 on black: 10.71:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green69.8%
Blue94.1%
CMYK percentages
Cyan22.5%
Magenta25.8%
Yellow0.0%
Key (black)5.9%
Color previews
#bab2f0 text on a black background
contrast 10.71:1
Card sample
#bab2f0 text on a white background
contrast 1.96:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #bab2f0;
Background color
Panel with #bab2f0 background
background-color: #bab2f0;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #bab2f0;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 178, 240, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 178, 240, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bab2f0; background: linear-gradient(135deg, #bab2f0, #E3B2F0);