Skip to content

#9a5df4

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

RGB
154, 93, 244
HSL
264°, 87%, 66%
CMYK
37, 62, 0, 4
Luminance
0.2123

Every format

HEX#9a5df4
RGBrgb(154, 93, 244)
HSLhsl(264, 87%, 66%)
CMYKcmyk(37%, 62%, 0%, 4%)
LABlab(53.2 55.1 -66.9)
LCHlch(53.2 86.7 309.5)
OKLCHoklch(0.620 0.216 298.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9a5df4 on white: 4.00:1
AA ✗ fail · AA-large · AAA
Aa
#9a5df4 on black: 5.25:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red60.4%
Green36.5%
Blue95.7%

CMYK percentages

Cyan36.9%
Magenta61.9%
Yellow0.0%
Key (black)4.3%

Color previews

#9a5df4 text on a black background

contrast 5.25:1

Card sample

#9a5df4 text on a white background

contrast 4.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(154, 93, 244, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(154, 93, 244, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9a5df4;
background: linear-gradient(135deg, #9a5df4, #F45DE9);

Monochromatic scale

Palettes built from #9a5df4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9a5df4 in the Color Lab