Skip to content

#9f4bdf

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

RGB
159, 75, 223
HSL
274°, 70%, 58%
CMYK
29, 66, 0, 13
Luminance
0.1773

Every format

HEX#9f4bdf
RGBrgb(159, 75, 223)
HSLhsl(274, 70%, 58%)
CMYKcmyk(29%, 66%, 0%, 13%)
LABlab(49.2 60.0 -61.6)
LCHlch(49.2 86.0 314.3)
OKLCHoklch(0.588 0.218 306.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9f4bdf on white: 4.62:1
AA ✓ pass · AA-large · AAA
Aa
#9f4bdf on black: 4.55:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.4%
Green29.4%
Blue87.5%

CMYK percentages

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

Color previews

#9f4bdf text on a black background

contrast 4.55:1

Card sample

#9f4bdf text on a white background

contrast 4.62:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9f4bdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9f4bdf in the Color Lab