Skip to content

#a25fdf

a balanced, vivid violet · warm · closest name: slateblue

RGB
162, 95, 223
HSL
271°, 67%, 62%
CMYK
27, 57, 0, 13
Luminance
0.2119

Every format

HEX#a25fdf
RGBrgb(162, 95, 223)
HSLhsl(271, 67%, 62%)
CMYKcmyk(27%, 57%, 0%, 13%)
LABlab(53.2 50.8 -55.1)
LCHlch(53.2 75.0 312.7)
OKLCHoklch(0.618 0.192 305.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a25fdf on white: 4.01:1
AA ✗ fail · AA-large · AAA
Aa
#a25fdf on black: 5.24:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red63.5%
Green37.3%
Blue87.5%

CMYK percentages

Cyan27.4%
Magenta57.4%
Yellow0.0%
Key (black)12.5%

Color previews

#a25fdf text on a black background

contrast 5.24:1

Card sample

#a25fdf text on a white background

contrast 4.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a25fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a25fdf in the Color Lab