Skip to content

#8e2dfb

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

RGB
142, 45, 251
HSL
268°, 96%, 58%
CMYK
43, 82, 0, 2
Luminance
0.1459

Every format

HEX#8e2dfb
RGBrgb(142, 45, 251)
HSLhsl(268, 96%, 58%)
CMYKcmyk(43%, 82%, 0%, 2%)
LABlab(45.1 75.3 -84.1)
LCHlch(45.1 112.9 311.8)
OKLCHoklch(0.561 0.272 297.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8e2dfb on white: 5.36:1
AA ✓ pass · AA-large · AAA
Aa
#8e2dfb on black: 3.92:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red55.7%
Green17.6%
Blue98.4%

CMYK percentages

Cyan43.4%
Magenta82.1%
Yellow0.0%
Key (black)1.6%

Color previews

#8e2dfb text on a black background

contrast 3.92:1

Card sample

#8e2dfb text on a white background

contrast 5.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8e2dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8e2dfb in the Color Lab