Skip to content

#9b4afd

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

RGB
155, 74, 253
HSL
267°, 98%, 64%
CMYK
39, 71, 0, 1
Luminance
0.1896

Every format

HEX#9b4afd
RGBrgb(155, 74, 253)
HSLhsl(267, 98%, 64%)
CMYKcmyk(39%, 71%, 0%, 1%)
LABlab(50.6 66.6 -76.1)
LCHlch(50.6 101.1 311.2)
OKLCHoklch(0.604 0.249 299.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9b4afd on white: 4.38:1
AA ✗ fail · AA-large · AAA
Aa
#9b4afd on black: 4.79:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red60.8%
Green29.0%
Blue99.2%

CMYK percentages

Cyan38.7%
Magenta70.8%
Yellow0.0%
Key (black)0.8%

Color previews

#9b4afd text on a black background

contrast 4.79:1

Card sample

#9b4afd text on a white background

contrast 4.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9b4afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9b4afd in the Color Lab