Skip to content

#9f55ff

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

RGB
159, 85, 255
HSL
266°, 100%, 67%
CMYK
38, 67, 0, 0
Luminance
0.2109

Every format

HEX#9f55ff
RGBrgb(159, 85, 255)
HSLhsl(266, 100%, 67%)
CMYKcmyk(38%, 67%, 0%, 0%)
LABlab(53.0 62.8 -73.3)
LCHlch(53.0 96.5 310.6)
OKLCHoklch(0.623 0.239 299.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9f55ff on white: 4.02:1
AA ✗ fail · AA-large · AAA
Aa
#9f55ff on black: 5.22:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.4%
Green33.3%
Blue100.0%

CMYK percentages

Cyan37.6%
Magenta66.7%
Yellow0.0%
Key (black)0.0%

Color previews

#9f55ff text on a black background

contrast 5.22:1

Card sample

#9f55ff text on a white background

contrast 4.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9f55ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9f55ff in the Color Lab