Skip to content

#9f80eb

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

RGB
159, 128, 235
HSL
257°, 73%, 71%
CMYK
32, 46, 0, 8
Luminance
0.2881

Every format

HEX#9f80eb
RGBrgb(159, 128, 235)
HSLhsl(257, 73%, 71%)
CMYKcmyk(32%, 46%, 0%, 8%)
LABlab(60.6 34.9 -50.0)
LCHlch(60.6 61.0 304.9)
OKLCHoklch(0.674 0.156 295.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9f80eb on white: 3.11:1
AA ✗ fail · AA-large · AAA
Aa
#9f80eb on black: 6.76:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.4%
Green50.2%
Blue92.2%

CMYK percentages

Cyan32.3%
Magenta45.5%
Yellow0.0%
Key (black)7.8%

Color previews

#9f80eb text on a black background

contrast 6.76:1

Card sample

#9f80eb text on a white background

contrast 3.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9f80eb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9f80eb in the Color Lab