Skip to content

#bab2fe

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

RGB
186, 178, 254
HSL
246°, 97%, 85%
CMYK
27, 30, 0, 0
Luminance
0.4944

Every format

HEX#bab2fe
RGBrgb(186, 178, 254)
HSLhsl(246, 97%, 85%)
CMYKcmyk(27%, 30%, 0%, 0%)
LABlab(75.7 18.9 -36.5)
LCHlch(75.7 41.1 297.4)
OKLCHoklch(0.798 0.107 288.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bab2fe on white: 1.93:1
AA ✗ fail · AA-large · AAA
Aa
#bab2fe on black: 10.89:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green69.8%
Blue99.6%

CMYK percentages

Cyan26.8%
Magenta29.9%
Yellow0.0%
Key (black)0.4%

Color previews

#bab2fe text on a black background

contrast 10.89:1

Card sample

#bab2fe text on a white background

contrast 1.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #bab2fe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bab2fe in the Color Lab