Skip to content

#9f39df

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

RGB
159, 57, 223
HSL
277°, 72%, 55%
CMYK
29, 74, 0, 13
Luminance
0.1562

Every format

HEX#9f39df
RGBrgb(159, 57, 223)
HSLhsl(277, 72%, 55%)
CMYKcmyk(29%, 74%, 0%, 13%)
LABlab(46.5 67.6 -65.9)
LCHlch(46.5 94.4 315.7)
OKLCHoklch(0.569 0.239 308.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red62.4%
Green22.4%
Blue87.5%

CMYK percentages

Cyan28.7%
Magenta74.4%
Yellow0.0%
Key (black)12.5%

Color previews

#9f39df text on a black background

contrast 4.12:1

Card sample

#9f39df text on a white background

contrast 5.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9f39df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9f39df in the Color Lab