Skip to content

#a239df

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

RGB
162, 57, 223
HSL
278°, 72%, 55%
CMYK
27, 74, 0, 13
Luminance
0.1594

Every format

HEX#a239df
RGBrgb(162, 57, 223)
HSLhsl(278, 72%, 55%)
CMYKcmyk(27%, 74%, 0%, 13%)
LABlab(46.9 68.1 -65.3)
LCHlch(46.9 94.3 316.2)
OKLCHoklch(0.573 0.240 309.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a239df on white: 5.02:1
AA ✓ pass · AA-large · AAA
Aa
#a239df on black: 4.19:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red63.5%
Green22.4%
Blue87.5%

CMYK percentages

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

Color previews

#a239df text on a black background

contrast 4.19:1

Card sample

#a239df text on a white background

contrast 5.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a239df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a239df in the Color Lab