Skip to content

#9e2dfb

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

RGB
158, 45, 251
HSL
273°, 96%, 58%
CMYK
37, 82, 0, 2
Luminance
0.1611

Every format

HEX#9e2dfb
RGBrgb(158, 45, 251)
HSLhsl(273, 96%, 58%)
CMYKcmyk(37%, 82%, 0%, 2%)
LABlab(47.1 77.4 -80.7)
LCHlch(47.1 111.8 313.8)
OKLCHoklch(0.580 0.275 302.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9e2dfb on white: 4.97:1
AA ✓ pass · AA-large · AAA
Aa
#9e2dfb on black: 4.22:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.0%
Green17.6%
Blue98.4%

CMYK percentages

Cyan37.1%
Magenta82.1%
Yellow0.0%
Key (black)1.6%

Color previews

#9e2dfb text on a black background

contrast 4.22:1

Card sample

#9e2dfb text on a white background

contrast 4.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9e2dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9e2dfb in the Color Lab