Skip to content

#9f2cef

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

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

Every format

HEX#9f2cef
RGBrgb(159, 44, 239)
HSLhsl(275, 86%, 56%)
CMYKcmyk(34%, 82%, 0%, 6%)
LABlab(46.2 75.3 -75.5)
LCHlch(46.2 106.6 314.9)
OKLCHoklch(0.571 0.265 305.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9f2cef on white: 5.15:1
AA ✓ pass · AA-large · AAA
Aa
#9f2cef on black: 4.08:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.4%
Green17.3%
Blue93.7%

CMYK percentages

Cyan33.5%
Magenta81.6%
Yellow0.0%
Key (black)6.3%

Color previews

#9f2cef text on a black background

contrast 4.08:1

Card sample

#9f2cef text on a white background

contrast 5.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9f2cef

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9f2cef in the Color Lab