Skip to content

#9f6df4

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

RGB
159, 109, 244
HSL
262°, 86%, 69%
CMYK
35, 55, 0, 4
Luminance
0.2484

Every format

HEX#9f6df4
RGBrgb(159, 109, 244)
HSLhsl(262, 86%, 69%)
CMYKcmyk(35%, 55%, 0%, 4%)
LABlab(56.9 47.8 -60.9)
LCHlch(56.9 77.4 308.1)
OKLCHoklch(0.649 0.195 297.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9f6df4 on white: 3.52:1
AA ✗ fail · AA-large · AAA
Aa
#9f6df4 on black: 5.97:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.4%
Green42.7%
Blue95.7%

CMYK percentages

Cyan34.8%
Magenta55.3%
Yellow0.0%
Key (black)4.3%

Color previews

#9f6df4 text on a black background

contrast 5.97:1

Card sample

#9f6df4 text on a white background

contrast 3.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9f6df4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9f6df4 in the Color Lab