Skip to content

#9e4def

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

RGB
158, 77, 239
HSL
270°, 84%, 62%
CMYK
34, 68, 0, 6
Luminance
0.1881

Every format

HEX#9e4def
RGBrgb(158, 77, 239)
HSLhsl(270, 84%, 62%)
CMYKcmyk(34%, 68%, 0%, 6%)
LABlab(50.5 62.5 -68.5)
LCHlch(50.5 92.8 312.4)
OKLCHoklch(0.601 0.232 302.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9e4def on white: 4.41:1
AA ✗ fail · AA-large · AAA
Aa
#9e4def on black: 4.76:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.0%
Green30.2%
Blue93.7%

CMYK percentages

Cyan33.9%
Magenta67.8%
Yellow0.0%
Key (black)6.3%

Color previews

#9e4def text on a black background

contrast 4.76:1

Card sample

#9e4def text on a white background

contrast 4.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9e4def

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9e4def in the Color Lab