Skip to content

#9d2eee

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

RGB
157, 46, 238
HSL
275°, 85%, 56%
CMYK
34, 81, 0, 7
Luminance
0.1530

Every format

HEX#9d2eee
RGBrgb(157, 46, 238)
HSLhsl(275, 85%, 56%)
CMYKcmyk(34%, 81%, 0%, 7%)
LABlab(46.0 74.2 -75.2)
LCHlch(46.0 105.6 314.6)
OKLCHoklch(0.569 0.262 305.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9d2eee on white: 5.17:1
AA ✓ pass · AA-large · AAA
Aa
#9d2eee on black: 4.06:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red61.6%
Green18.0%
Blue93.3%

CMYK percentages

Cyan34.0%
Magenta80.7%
Yellow0.0%
Key (black)6.7%

Color previews

#9d2eee text on a black background

contrast 4.06:1

Card sample

#9d2eee text on a white background

contrast 5.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(157, 46, 238, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(157, 46, 238, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9d2eee;
background: linear-gradient(135deg, #9d2eee, #EE2EBF);

Monochromatic scale

Palettes built from #9d2eee

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9d2eee in the Color Lab