Skip to content

#a25dfb

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

RGB
162, 93, 251
HSL
266°, 95%, 68%
CMYK
36, 63, 0, 2
Luminance
0.2248

Every format

HEX#a25dfb
RGBrgb(162, 93, 251)
HSLhsl(266, 95%, 68%)
CMYKcmyk(36%, 63%, 0%, 2%)
LABlab(54.5 58.5 -68.6)
LCHlch(54.5 90.2 310.5)
OKLCHoklch(0.633 0.226 300.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a25dfb on white: 3.82:1
AA ✗ fail · AA-large · AAA
Aa
#a25dfb on black: 5.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red63.5%
Green36.5%
Blue98.4%

CMYK percentages

Cyan35.5%
Magenta62.9%
Yellow0.0%
Key (black)1.6%

Color previews

#a25dfb text on a black background

contrast 5.50:1

Card sample

#a25dfb text on a white background

contrast 3.82:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a25dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a25dfb in the Color Lab