Skip to content

#8b3dfb

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

RGB
139, 61, 251
HSL
265°, 96%, 61%
CMYK
45, 76, 0, 2
Luminance
0.1579

Every format

HEX#8b3dfb
RGBrgb(139, 61, 251)
HSLhsl(265, 96%, 61%)
CMYKcmyk(45%, 76%, 0%, 2%)
LABlab(46.7 69.1 -81.5)
LCHlch(46.7 106.8 310.3)
OKLCHoklch(0.572 0.259 295.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8b3dfb on white: 5.05:1
AA ✓ pass · AA-large · AAA
Aa
#8b3dfb on black: 4.16:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.5%
Green23.9%
Blue98.4%

CMYK percentages

Cyan44.6%
Magenta75.7%
Yellow0.0%
Key (black)1.6%

Color previews

#8b3dfb text on a black background

contrast 4.16:1

Card sample

#8b3dfb text on a white background

contrast 5.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8b3dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8b3dfb in the Color Lab