Skip to content

#9f2fef

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

RGB
159, 47, 239
HSL
275°, 86%, 56%
CMYK
34, 80, 0, 6
Luminance
0.1564

Every format

HEX#9f2fef
RGBrgb(159, 47, 239)
HSLhsl(275, 86%, 56%)
CMYKcmyk(34%, 80%, 0%, 6%)
LABlab(46.5 74.4 -75.0)
LCHlch(46.5 105.6 314.8)
OKLCHoklch(0.573 0.263 305.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9f2fef on white: 5.09:1
AA ✓ pass · AA-large · AAA
Aa
#9f2fef on black: 4.13:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.4%
Green18.4%
Blue93.7%

CMYK percentages

Cyan33.5%
Magenta80.3%
Yellow0.0%
Key (black)6.3%

Color previews

#9f2fef text on a black background

contrast 4.13:1

Card sample

#9f2fef text on a white background

contrast 5.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9f2fef

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9f2fef in the Color Lab