Skip to content

#8a39db

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

RGB
138, 57, 219
HSL
270°, 69%, 54%
CMYK
37, 74, 0, 14
Luminance
0.1344

Every format

HEX#8a39db
RGBrgb(138, 57, 219)
HSLhsl(270, 69%, 54%)
CMYKcmyk(37%, 74%, 0%, 14%)
LABlab(43.4 63.0 -68.8)
LCHlch(43.4 93.3 312.5)
OKLCHoklch(0.541 0.231 301.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8a39db on white: 5.69:1
AA ✓ pass · AA-large · AAA
Aa
#8a39db on black: 3.69:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.1%
Green22.4%
Blue85.9%

CMYK percentages

Cyan37.0%
Magenta74.0%
Yellow0.0%
Key (black)14.1%

Color previews

#8a39db text on a black background

contrast 3.69:1

Card sample

#8a39db text on a white background

contrast 5.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8a39db

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8a39db in the Color Lab