Skip to content

#9f2eee

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

RGB
159, 46, 238
HSL
275°, 85%, 56%
CMYK
33, 81, 0, 7
Luminance
0.1550

Every format

HEX#9f2eee
RGBrgb(159, 46, 238)
HSLhsl(275, 85%, 56%)
CMYKcmyk(33%, 81%, 0%, 7%)
LABlab(46.3 74.5 -74.7)
LCHlch(46.3 105.5 314.9)
OKLCHoklch(0.571 0.263 305.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9f2eee on white: 5.12:1
AA ✓ pass · AA-large · AAA
Aa
#9f2eee on black: 4.10:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.4%
Green18.0%
Blue93.3%

CMYK percentages

Cyan33.2%
Magenta80.7%
Yellow0.0%
Key (black)6.7%

Color previews

#9f2eee text on a black background

contrast 4.10:1

Card sample

#9f2eee text on a white background

contrast 5.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9f2eee

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9f2eee in the Color Lab