Skip to content

#9b4df1

a balanced, electric violet · warm · closest name: slateblue

RGB
155, 77, 241
HSL
269°, 85%, 62%
CMYK
36, 68, 0, 6
Luminance
0.1863

Every format

HEX#9b4df1
RGBrgb(155, 77, 241)
HSLhsl(269, 85%, 62%)
CMYKcmyk(36%, 68%, 0%, 6%)
LABlab(50.3 62.5 -70.0)
LCHlch(50.3 93.8 311.7)
OKLCHoklch(0.599 0.234 301.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9b4df1 on white: 4.44:1
AA ✗ fail · AA-large · AAA
Aa
#9b4df1 on black: 4.73:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red60.8%
Green30.2%
Blue94.5%

CMYK percentages

Cyan35.7%
Magenta68.0%
Yellow0.0%
Key (black)5.5%

Color previews

#9b4df1 text on a black background

contrast 4.73:1

Card sample

#9b4df1 text on a white background

contrast 4.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9b4df1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9b4df1 in the Color Lab