Skip to content

#b2baf2

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

RGB
178, 186, 242
HSL
233°, 71%, 82%
CMYK
26, 23, 0, 5
Luminance
0.5099

Every format

HEX#b2baf2
RGBrgb(178, 186, 242)
HSLhsl(233, 71%, 82%)
CMYKcmyk(26%, 23%, 0%, 5%)
LABlab(76.7 9.3 -28.7)
LCHlch(76.7 30.1 288.0)
OKLCHoklch(0.802 0.080 278.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

Cyan26.4%
Magenta23.1%
Yellow0.0%
Key (black)5.1%

Color previews

#b2baf2 text on a black background

contrast 11.20:1

Card sample

#b2baf2 text on a white background

contrast 1.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b2baf2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b2baf2 in the Color Lab