Skip to content

#b5a5df

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

RGB
181, 165, 223
HSL
257°, 48%, 76%
CMYK
19, 26, 0, 13
Luminance
0.4206

Every format

HEX#b5a5df
RGBrgb(181, 165, 223)
HSLhsl(257, 48%, 76%)
CMYKcmyk(19%, 26%, 0%, 13%)
LABlab(70.9 17.4 -27.2)
LCHlch(70.9 32.3 302.7)
OKLCHoklch(0.756 0.084 297.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b5a5df on white: 2.23:1
AA ✗ fail · AA-large · AAA
Aa
#b5a5df on black: 9.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red71.0%
Green64.7%
Blue87.5%

CMYK percentages

Cyan18.8%
Magenta26.0%
Yellow0.0%
Key (black)12.5%

Color previews

#b5a5df text on a black background

contrast 9.41:1

Card sample

#b5a5df text on a white background

contrast 2.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b5a5df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b5a5df in the Color Lab