Skip to content

#952dfb

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

RGB
149, 45, 251
HSL
270°, 96%, 58%
CMYK
41, 82, 0, 2
Luminance
0.1523

Every format

HEX#952dfb
RGBrgb(149, 45, 251)
HSLhsl(270, 96%, 58%)
CMYKcmyk(41%, 82%, 0%, 2%)
LABlab(46.0 76.2 -82.7)
LCHlch(46.0 112.4 312.7)
OKLCHoklch(0.569 0.273 300.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#952dfb on white: 5.19:1
AA ✓ pass · AA-large · AAA
Aa
#952dfb on black: 4.05:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red58.4%
Green17.6%
Blue98.4%

CMYK percentages

Cyan40.6%
Magenta82.1%
Yellow0.0%
Key (black)1.6%

Color previews

#952dfb text on a black background

contrast 4.05:1

Card sample

#952dfb text on a white background

contrast 5.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #952dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #952dfb in the Color Lab