Skip to content

#9b81d9

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

RGB
155, 129, 217
HSL
258°, 54%, 68%
CMYK
29, 41, 0, 15
Luminance
0.2768

Every format

HEX#9b81d9
RGBrgb(155, 129, 217)
HSLhsl(258, 54%, 68%)
CMYKcmyk(29%, 41%, 0%, 15%)
LABlab(59.6 28.7 -41.6)
LCHlch(59.6 50.5 304.6)
OKLCHoklch(0.663 0.130 296.3)

Copy-ready code

/* CSS */
color: #9b81d9;
background-color: #9b81d9;
/* Tailwind (arbitrary) */
class="text-[#9b81d9] bg-[#9b81d9]"
/* SCSS */
$brand: #9b81d9;
/* SwiftUI */
Color(red: 0.608, green: 0.506, blue: 0.851)
/* Android */
Color.parseColor("#9b81d9")

Accessibility — WCAG contrast

Aa
#9b81d9 on white: 3.21:1
AA ✗ fail · AA-large · AAA
Aa
#9b81d9 on black: 6.54:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red60.8%
Green50.6%
Blue85.1%

CMYK percentages

Cyan28.6%
Magenta40.6%
Yellow0.0%
Key (black)14.9%

Color previews

#9b81d9 text on a black background

contrast 6.54:1

Card sample

#9b81d9 text on a white background

contrast 3.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(155, 129, 217, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(155, 129, 217, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9b81d9;
background: linear-gradient(135deg, #9b81d9, #D681D9);

Monochromatic scale

Palettes built from #9b81d9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9b81d9 in the Color Lab