Skip to content

#b2baf1

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

RGB
178, 186, 241
HSL
232°, 69%, 82%
CMYK
26, 23, 0, 6
Luminance
0.5093

Every format

HEX#b2baf1
RGBrgb(178, 186, 241)
HSLhsl(232, 69%, 82%)
CMYKcmyk(26%, 23%, 0%, 6%)
LABlab(76.6 9.1 -28.2)
LCHlch(76.6 29.6 287.9)
OKLCHoklch(0.802 0.078 278.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b2baf1 on white: 1.88:1
AA ✗ fail · AA-large · AAA
Aa
#b2baf1 on black: 11.19:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.8%
Green72.9%
Blue94.5%

CMYK percentages

Cyan26.1%
Magenta22.8%
Yellow0.0%
Key (black)5.5%

Color previews

#b2baf1 text on a black background

contrast 11.19:1

Card sample

#b2baf1 text on a white background

contrast 1.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b2baf1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b2baf1 in the Color Lab