Skip to content

#8b40df

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

RGB
139, 64, 223
HSL
268°, 71%, 56%
CMYK
38, 71, 0, 13
Luminance
0.1448

Every format

HEX#8b40df
RGBrgb(139, 64, 223)
HSLhsl(268, 71%, 56%)
CMYKcmyk(38%, 71%, 0%, 13%)
LABlab(44.9 61.1 -68.6)
LCHlch(44.9 91.9 311.7)
OKLCHoklch(0.552 0.227 300.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8b40df on white: 5.39:1
AA ✓ pass · AA-large · AAA
Aa
#8b40df on black: 3.90:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.5%
Green25.1%
Blue87.5%

CMYK percentages

Cyan37.7%
Magenta71.3%
Yellow0.0%
Key (black)12.5%

Color previews

#8b40df text on a black background

contrast 3.90:1

Card sample

#8b40df text on a white background

contrast 5.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(139, 64, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(139, 64, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8b40df;
background: linear-gradient(135deg, #8b40df, #DF40C9);

Monochromatic scale

Palettes built from #8b40df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8b40df in the Color Lab