Skip to content

#925dfb

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

RGB
146, 93, 251
HSL
260°, 95%, 68%
CMYK
42, 63, 0, 2
Luminance
0.2090

Every format

HEX#925dfb
RGBrgb(146, 93, 251)
HSLhsl(260, 95%, 68%)
CMYKcmyk(42%, 63%, 0%, 2%)
LABlab(52.8 55.3 -71.4)
LCHlch(52.8 90.3 307.7)
OKLCHoklch(0.617 0.224 294.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red57.3%
Green36.5%
Blue98.4%

CMYK percentages

Cyan41.8%
Magenta62.9%
Yellow0.0%
Key (black)1.6%

Color previews

#925dfb text on a black background

contrast 5.18:1

Card sample

#925dfb text on a white background

contrast 4.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #925dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #925dfb in the Color Lab