Skip to content

#bab2f9

a light, electric blue · warm · closest name: plum

RGB
186, 178, 249
HSL
247°, 86%, 84%
CMYK
25, 29, 0, 2
Luminance
0.4912

Every format

HEX#bab2f9
RGBrgb(186, 178, 249)
HSLhsl(247, 86%, 84%)
CMYKcmyk(25%, 29%, 0%, 2%)
LABlab(75.5 17.7 -34.2)
LCHlch(75.5 38.5 297.4)
OKLCHoklch(0.796 0.100 289.1)

Copy-ready code

/* CSS */
color: #bab2f9;
background-color: #bab2f9;
/* Tailwind (arbitrary) */
class="text-[#bab2f9] bg-[#bab2f9]"
/* SCSS */
$brand: #bab2f9;
/* SwiftUI */
Color(red: 0.729, green: 0.698, blue: 0.976)
/* Android */
Color.parseColor("#bab2f9")

Accessibility — WCAG contrast

Aa
#bab2f9 on white: 1.94:1
AA ✗ fail · AA-large · AAA
Aa
#bab2f9 on black: 10.82:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green69.8%
Blue97.6%

CMYK percentages

Cyan25.3%
Magenta28.5%
Yellow0.0%
Key (black)2.4%

Color previews

#bab2f9 text on a black background

contrast 10.82:1

Card sample

#bab2f9 text on a white background

contrast 1.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #bab2f9;
Background color
Panel with #bab2f9 background
background-color: #bab2f9;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #bab2f9;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(186, 178, 249, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 178, 249, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bab2f9;
background: linear-gradient(135deg, #bab2f9, #E9B2F9);

Monochromatic scale

Palettes built from #bab2f9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bab2f9 in the Color Lab