Skip to content

#a25dfd

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

RGB
162, 93, 253
HSL
266°, 98%, 68%
CMYK
36, 63, 0, 1
Luminance
0.2260

Every format

HEX#a25dfd
RGBrgb(162, 93, 253)
HSLhsl(266, 98%, 68%)
CMYKcmyk(36%, 63%, 0%, 1%)
LABlab(54.7 59.0 -69.5)
LCHlch(54.7 91.2 310.3)
OKLCHoklch(0.635 0.228 299.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a25dfd on white: 3.80:1
AA ✗ fail · AA-large · AAA
Aa
#a25dfd on black: 5.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red63.5%
Green36.5%
Blue99.2%

CMYK percentages

Cyan36.0%
Magenta63.2%
Yellow0.0%
Key (black)0.8%

Color previews

#a25dfd text on a black background

contrast 5.52:1

Card sample

#a25dfd text on a white background

contrast 3.80:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a25dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a25dfd in the Color Lab