Skip to content

#8a4fdf

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

RGB
138, 79, 223
HSL
265°, 69%, 59%
CMYK
38, 65, 0, 13
Luminance
0.1632

Every format

HEX#8a4fdf
RGBrgb(138, 79, 223)
HSLhsl(265, 69%, 59%)
CMYKcmyk(38%, 65%, 0%, 13%)
LABlab(47.4 53.8 -64.6)
LCHlch(47.4 84.0 309.8)
OKLCHoklch(0.570 0.209 298.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8a4fdf on white: 4.92:1
AA ✓ pass · AA-large · AAA
Aa
#8a4fdf on black: 4.26:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.1%
Green31.0%
Blue87.5%

CMYK percentages

Cyan38.1%
Magenta64.6%
Yellow0.0%
Key (black)12.5%

Color previews

#8a4fdf text on a black background

contrast 4.26:1

Card sample

#8a4fdf text on a white background

contrast 4.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8a4fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8a4fdf in the Color Lab