Skip to content

#9d2cef

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

RGB
157, 44, 239
HSL
275°, 86%, 56%
CMYK
34, 82, 0, 6
Luminance
0.1520

Every format

HEX#9d2cef
RGBrgb(157, 44, 239)
HSLhsl(275, 86%, 56%)
CMYKcmyk(34%, 82%, 0%, 6%)
LABlab(45.9 75.0 -75.9)
LCHlch(45.9 106.8 314.7)
OKLCHoklch(0.568 0.265 305.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9d2cef on white: 5.20:1
AA ✓ pass · AA-large · AAA
Aa
#9d2cef on black: 4.04:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red61.6%
Green17.3%
Blue93.7%

CMYK percentages

Cyan34.3%
Magenta81.6%
Yellow0.0%
Key (black)6.3%

Color previews

#9d2cef text on a black background

contrast 4.04:1

Card sample

#9d2cef text on a white background

contrast 5.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9d2cef

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9d2cef in the Color Lab