Skip to content

#9b89eb

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

RGB
155, 137, 235
HSL
251°, 71%, 73%
CMYK
34, 42, 0, 8
Luminance
0.3086

Every format

HEX#9b89eb
RGBrgb(155, 137, 235)
HSLhsl(251, 71%, 73%)
CMYKcmyk(34%, 42%, 0%, 8%)
LABlab(62.4 28.7 -47.2)
LCHlch(62.4 55.3 301.3)
OKLCHoklch(0.687 0.142 290.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9b89eb on white: 2.93:1
AA ✗ fail · AA-large · AAA
Aa
#9b89eb on black: 7.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red60.8%
Green53.7%
Blue92.2%

CMYK percentages

Cyan34.0%
Magenta41.7%
Yellow0.0%
Key (black)7.8%

Color previews

#9b89eb text on a black background

contrast 7.17:1

Card sample

#9b89eb text on a white background

contrast 2.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9b89eb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9b89eb in the Color Lab