Skip to content

#a25cff

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

RGB
162, 92, 255
HSL
266°, 100%, 68%
CMYK
37, 64, 0, 0
Luminance
0.2256

Every format

HEX#a25cff
RGBrgb(162, 92, 255)
HSLhsl(266, 100%, 68%)
CMYKcmyk(37%, 64%, 0%, 0%)
LABlab(54.6 60.0 -70.7)
LCHlch(54.6 92.7 310.3)
OKLCHoklch(0.635 0.231 299.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a25cff on white: 3.81:1
AA ✗ fail · AA-large · AAA
Aa
#a25cff on black: 5.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red63.5%
Green36.1%
Blue100.0%

CMYK percentages

Cyan36.5%
Magenta63.9%
Yellow0.0%
Key (black)0.0%

Color previews

#a25cff text on a black background

contrast 5.51:1

Card sample

#a25cff text on a white background

contrast 3.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a25cff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a25cff in the Color Lab