Skip to content

#976df2

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

RGB
151, 109, 242
HSL
259°, 84%, 69%
CMYK
38, 55, 0, 5
Luminance
0.2393

Every format

HEX#976df2
RGBrgb(151, 109, 242)
HSLhsl(259, 84%, 69%)
CMYKcmyk(38%, 55%, 0%, 5%)
LABlab(56.0 45.4 -61.3)
LCHlch(56.0 76.3 306.5)
OKLCHoklch(0.640 0.192 295.0)

Copy-ready code

/* CSS */
color: #976df2;
background-color: #976df2;
/* Tailwind (arbitrary) */
class="text-[#976df2] bg-[#976df2]"
/* SCSS */
$brand: #976df2;
/* SwiftUI */
Color(red: 0.592, green: 0.427, blue: 0.949)
/* Android */
Color.parseColor("#976df2")

Accessibility — WCAG contrast

Aa
#976df2 on white: 3.63:1
AA ✗ fail · AA-large · AAA
Aa
#976df2 on black: 5.79:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red59.2%
Green42.7%
Blue94.9%

CMYK percentages

Cyan37.6%
Magenta55.0%
Yellow0.0%
Key (black)5.1%

Color previews

#976df2 text on a black background

contrast 5.79:1

Card sample

#976df2 text on a white background

contrast 3.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #976df2;
Background color
Panel with #976df2 background
background-color: #976df2;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #976df2;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(151, 109, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(151, 109, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #976df2;
background: linear-gradient(135deg, #976df2, #F06DF2);

Monochromatic scale

Palettes built from #976df2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #976df2 in the Color Lab