Skip to content

#8b3ef1

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

RGB
139, 62, 241
HSL
266°, 87%, 59%
CMYK
42, 74, 0, 6
Luminance
0.1529

Every format

HEX#8b3ef1
RGBrgb(139, 62, 241)
HSLhsl(266, 87%, 59%)
CMYKcmyk(42%, 74%, 0%, 6%)
LABlab(46.0 66.3 -77.0)
LCHlch(46.0 101.6 310.7)
OKLCHoklch(0.565 0.248 297.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8b3ef1 on white: 5.18:1
AA ✓ pass · AA-large · AAA
Aa
#8b3ef1 on black: 4.06:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.5%
Green24.3%
Blue94.5%

CMYK percentages

Cyan42.3%
Magenta74.3%
Yellow0.0%
Key (black)5.5%

Color previews

#8b3ef1 text on a black background

contrast 4.06:1

Card sample

#8b3ef1 text on a white background

contrast 5.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8b3ef1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8b3ef1 in the Color Lab