Skip to content

#9e2fdf

a balanced, vivid violet · warm · closest name: magenta

RGB
158, 47, 223
HSL
278°, 73%, 53%
CMYK
29, 79, 0, 13
Luminance
0.1463

Every format

HEX#9e2fdf
RGBrgb(158, 47, 223)
HSLhsl(278, 73%, 53%)
CMYKcmyk(29%, 79%, 0%, 13%)
LABlab(45.1 70.9 -68.2)
LCHlch(45.1 98.4 316.1)
OKLCHoklch(0.559 0.248 308.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9e2fdf on white: 5.35:1
AA ✓ pass · AA-large · AAA
Aa
#9e2fdf on black: 3.93:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.0%
Green18.4%
Blue87.5%

CMYK percentages

Cyan29.1%
Magenta78.9%
Yellow0.0%
Key (black)12.5%

Color previews

#9e2fdf text on a black background

contrast 3.93:1

Card sample

#9e2fdf text on a white background

contrast 5.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9e2fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9e2fdf in the Color Lab