Skip to content

#bab2ff

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

RGB
186, 178, 255
HSL
246°, 100%, 85%
CMYK
27, 30, 0, 0
Luminance
0.4950

Every format

HEX#bab2ff
RGBrgb(186, 178, 255)
HSLhsl(246, 100%, 85%)
CMYKcmyk(27%, 30%, 0%, 0%)
LABlab(75.8 19.1 -37.0)
LCHlch(75.8 41.7 297.3)
OKLCHoklch(0.798 0.108 288.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red72.9%
Green69.8%
Blue100.0%

CMYK percentages

Cyan27.1%
Magenta30.2%
Yellow0.0%
Key (black)0.0%

Color previews

#bab2ff text on a black background

contrast 10.90:1

Card sample

#bab2ff text on a white background

contrast 1.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #bab2ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bab2ff in the Color Lab