Skip to content

#9b4df8

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

RGB
155, 77, 248
HSL
267°, 92%, 64%
CMYK
38, 69, 0, 3
Luminance
0.1905

Every format

HEX#9b4df8
RGBrgb(155, 77, 248)
HSLhsl(267, 92%, 64%)
CMYKcmyk(38%, 69%, 0%, 3%)
LABlab(50.8 64.1 -73.1)
LCHlch(50.8 97.2 311.2)
OKLCHoklch(0.604 0.241 300.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9b4df8 on white: 4.37:1
AA ✗ fail · AA-large · AAA
Aa
#9b4df8 on black: 4.81:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red60.8%
Green30.2%
Blue97.3%

CMYK percentages

Cyan37.5%
Magenta69.0%
Yellow0.0%
Key (black)2.7%

Color previews

#9b4df8 text on a black background

contrast 4.81:1

Card sample

#9b4df8 text on a white background

contrast 4.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9b4df8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9b4df8 in the Color Lab