Skip to content

#b25dfb

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

RGB
178, 93, 251
HSL
272°, 95%, 68%
CMYK
29, 63, 0, 2
Luminance
0.2426

Every format

HEX#b25dfb
RGBrgb(178, 93, 251)
HSLhsl(272, 95%, 68%)
CMYKcmyk(29%, 63%, 0%, 2%)
LABlab(56.4 61.9 -65.6)
LCHlch(56.4 90.2 313.3)
OKLCHoklch(0.650 0.229 305.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b25dfb on white: 3.59:1
AA ✗ fail · AA-large · AAA
Aa
#b25dfb on black: 5.85:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.8%
Green36.5%
Blue98.4%

CMYK percentages

Cyan29.1%
Magenta62.9%
Yellow0.0%
Key (black)1.6%

Color previews

#b25dfb text on a black background

contrast 5.85:1

Card sample

#b25dfb text on a white background

contrast 3.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b25dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b25dfb in the Color Lab