Skip to content

#952df2

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

RGB
149, 45, 242
HSL
272°, 88%, 56%
CMYK
38, 81, 0, 5
Luminance
0.1468

Every format

HEX#952df2
RGBrgb(149, 45, 242)
HSLhsl(272, 88%, 56%)
CMYKcmyk(38%, 81%, 0%, 5%)
LABlab(45.2 74.2 -78.8)
LCHlch(45.2 108.3 313.3)
OKLCHoklch(0.562 0.265 301.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#952df2 on white: 5.34:1
AA ✓ pass · AA-large · AAA
Aa
#952df2 on black: 3.94:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red58.4%
Green17.6%
Blue94.9%

CMYK percentages

Cyan38.4%
Magenta81.4%
Yellow0.0%
Key (black)5.1%

Color previews

#952df2 text on a black background

contrast 3.94:1

Card sample

#952df2 text on a white background

contrast 5.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #952df2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #952df2 in the Color Lab