Skip to content

#960fe2

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

RGB
150, 15, 226
HSL
278°, 88%, 47%
CMYK
34, 93, 0, 11
Luminance
0.1232

Every format

HEX#960fe2
RGBrgb(150, 15, 226)
HSLhsl(278, 88%, 47%)
CMYKcmyk(34%, 93%, 0%, 11%)
LABlab(41.7 77.8 -75.5)
LCHlch(41.7 108.4 315.9)
OKLCHoklch(0.534 0.268 306.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#960fe2 on white: 6.06:1
AA ✓ pass · AA-large · AAA
Aa
#960fe2 on black: 3.46:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red58.8%
Green5.9%
Blue88.6%

CMYK percentages

Cyan33.6%
Magenta93.4%
Yellow0.0%
Key (black)11.4%

Color previews

#960fe2 text on a black background

contrast 3.46:1

Card sample

#960fe2 text on a white background

contrast 6.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #960fe2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #960fe2 in the Color Lab