Skip to content

#960dfb

a balanced, electric violet · warm · closest name: blue

RGB
150, 13, 251
HSL
275°, 97%, 52%
CMYK
40, 95, 0, 2
Luminance
0.1374

Every format

HEX#960dfb
RGBrgb(150, 13, 251)
HSLhsl(275, 97%, 52%)
CMYKcmyk(40%, 95%, 0%, 2%)
LABlab(43.9 82.9 -86.1)
LCHlch(43.9 119.5 313.9)
OKLCHoklch(0.555 0.289 301.5)

Copy-ready code

/* CSS */
color: #960dfb;
background-color: #960dfb;
/* Tailwind (arbitrary) */
class="text-[#960dfb] bg-[#960dfb]"
/* SCSS */
$brand: #960dfb;
/* SwiftUI */
Color(red: 0.588, green: 0.051, blue: 0.984)
/* Android */
Color.parseColor("#960dfb")

Accessibility — WCAG contrast

Aa
#960dfb on white: 5.60:1
AA ✓ pass · AA-large · AAA
Aa
#960dfb on black: 3.75:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red58.8%
Green5.1%
Blue98.4%

CMYK percentages

Cyan40.2%
Magenta94.8%
Yellow0.0%
Key (black)1.6%

Color previews

#960dfb text on a black background

contrast 3.75:1

Card sample

#960dfb text on a white background

contrast 5.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #960dfb;
Background color
Panel with #960dfb background
background-color: #960dfb;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #960dfb;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(150, 13, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(150, 13, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #960dfb;
background: linear-gradient(135deg, #960dfb, #FB0DC1);

Monochromatic scale

Palettes built from #960dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #960dfb in the Color Lab