Skip to content

#b2a7df

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

RGB
178, 167, 223
HSL
252°, 47%, 77%
CMYK
20, 25, 0, 13
Luminance
0.4243

Every format

HEX#b2a7df
RGBrgb(178, 167, 223)
HSLhsl(252, 47%, 77%)
CMYKcmyk(20%, 25%, 0%, 13%)
LABlab(71.2 15.4 -26.8)
LCHlch(71.2 30.9 299.9)
OKLCHoklch(0.757 0.080 293.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b2a7df on white: 2.21:1
AA ✗ fail · AA-large · AAA
Aa
#b2a7df on black: 9.49:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.8%
Green65.5%
Blue87.5%

CMYK percentages

Cyan20.2%
Magenta25.1%
Yellow0.0%
Key (black)12.5%

Color previews

#b2a7df text on a black background

contrast 9.49:1

Card sample

#b2a7df text on a white background

contrast 2.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b2a7df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b2a7df in the Color Lab