Skip to content

#8e2dfd

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

RGB
142, 45, 253
HSL
268°, 98%, 58%
CMYK
44, 82, 0, 1
Luminance
0.1472

Every format

HEX#8e2dfd
RGBrgb(142, 45, 253)
HSLhsl(268, 98%, 58%)
CMYKcmyk(44%, 82%, 0%, 1%)
LABlab(45.3 75.8 -85.0)
LCHlch(45.3 113.8 311.7)
OKLCHoklch(0.563 0.274 297.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8e2dfd on white: 5.32:1
AA ✓ pass · AA-large · AAA
Aa
#8e2dfd on black: 3.94:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red55.7%
Green17.6%
Blue99.2%

CMYK percentages

Cyan43.9%
Magenta82.2%
Yellow0.0%
Key (black)0.8%

Color previews

#8e2dfd text on a black background

contrast 3.94:1

Card sample

#8e2dfd text on a white background

contrast 5.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8e2dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8e2dfd in the Color Lab