Skip to content

#b2abfb

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

RGB
178, 171, 251
HSL
245°, 91%, 83%
CMYK
29, 32, 0, 2
Luminance
0.4556

Every format

HEX#b2abfb
RGBrgb(178, 171, 251)
HSLhsl(245, 91%, 83%)
CMYKcmyk(29%, 32%, 0%, 2%)
LABlab(73.3 19.8 -38.8)
LCHlch(73.3 43.6 297.0)
OKLCHoklch(0.777 0.113 287.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b2abfb on white: 2.08:1
AA ✗ fail · AA-large · AAA
Aa
#b2abfb on black: 10.11:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.8%
Green67.1%
Blue98.4%

CMYK percentages

Cyan29.1%
Magenta31.9%
Yellow0.0%
Key (black)1.6%

Color previews

#b2abfb text on a black background

contrast 10.11:1

Card sample

#b2abfb text on a white background

contrast 2.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b2abfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b2abfb in the Color Lab