Skip to content

#bab7ff

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

RGB
186, 183, 255
HSL
243°, 100%, 86%
CMYK
27, 28, 0, 0
Luminance
0.5153

Every format

HEX#bab7ff
RGBrgb(186, 183, 255)
HSLhsl(243, 100%, 86%)
CMYKcmyk(27%, 28%, 0%, 0%)
LABlab(77.0 16.4 -35.1)
LCHlch(77.0 38.8 295.0)
OKLCHoklch(0.808 0.101 285.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bab7ff on white: 1.86:1
AA ✗ fail · AA-large · AAA
Aa
#bab7ff on black: 11.31:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green71.8%
Blue100.0%

CMYK percentages

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

Color previews

#bab7ff text on a black background

contrast 11.31:1

Card sample

#bab7ff text on a white background

contrast 1.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #bab7ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bab7ff in the Color Lab