Skip to content

#b2baf8

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

RGB
178, 186, 248
HSL
233°, 83%, 84%
CMYK
28, 25, 0, 3
Luminance
0.5136

Every format

HEX#b2baf8
RGBrgb(178, 186, 248)
HSLhsl(233, 83%, 84%)
CMYKcmyk(28%, 25%, 0%, 3%)
LABlab(76.9 10.8 -31.6)
LCHlch(76.9 33.3 288.8)
OKLCHoklch(0.805 0.088 278.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red69.8%
Green72.9%
Blue97.3%

CMYK percentages

Cyan28.2%
Magenta25.0%
Yellow0.0%
Key (black)2.7%

Color previews

#b2baf8 text on a black background

contrast 11.27:1

Card sample

#b2baf8 text on a white background

contrast 1.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b2baf8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b2baf8 in the Color Lab