Skip to content

#8a5df4

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

RGB
138, 93, 244
HSL
258°, 87%, 66%
CMYK
43, 62, 0, 4
Luminance
0.1976

Every format

HEX#8a5df4
RGBrgb(138, 93, 244)
HSLhsl(258, 87%, 66%)
CMYKcmyk(43%, 62%, 0%, 4%)
LABlab(51.6 51.9 -69.6)
LCHlch(51.6 86.8 306.7)
OKLCHoklch(0.605 0.215 292.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8a5df4 on white: 4.24:1
AA ✗ fail · AA-large · AAA
Aa
#8a5df4 on black: 4.95:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.1%
Green36.5%
Blue95.7%

CMYK percentages

Cyan43.4%
Magenta61.9%
Yellow0.0%
Key (black)4.3%

Color previews

#8a5df4 text on a black background

contrast 4.95:1

Card sample

#8a5df4 text on a white background

contrast 4.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8a5df4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8a5df4 in the Color Lab