Skip to content

#9b87af

a balanced, soft violet · warm · closest name: plum

RGB
155, 135, 175
HSL
270°, 20%, 61%
CMYK
11, 23, 0, 31
Luminance
0.2739

Every format

HEX#9b87af
RGBrgb(155, 135, 175)
HSLhsl(270, 20%, 61%)
CMYKcmyk(11%, 23%, 0%, 31%)
LABlab(59.3 15.4 -18.3)
LCHlch(59.3 23.9 310.1)
OKLCHoklch(0.655 0.063 307.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9b87af on white: 3.24:1
AA ✗ fail · AA-large · AAA
Aa
#9b87af on black: 6.48:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red60.8%
Green52.9%
Blue68.6%

CMYK percentages

Cyan11.4%
Magenta22.9%
Yellow0.0%
Key (black)31.4%

Color previews

#9b87af text on a black background

contrast 6.48:1

Card sample

#9b87af text on a white background

contrast 3.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9b87af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9b87af in the Color Lab