Skip to content

#8a5cd3

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

RGB
138, 92, 211
HSL
263°, 58%, 59%
CMYK
35, 56, 0, 17
Luminance
0.1776

Every format

HEX#8a5cd3
RGBrgb(138, 92, 211)
HSLhsl(263, 58%, 59%)
CMYKcmyk(35%, 56%, 0%, 17%)
LABlab(49.2 43.8 -54.8)
LCHlch(49.2 70.2 308.6)
OKLCHoklch(0.581 0.177 298.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8a5cd3 on white: 4.61:1
AA ✓ pass · AA-large · AAA
Aa
#8a5cd3 on black: 4.55:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.1%
Green36.1%
Blue82.7%

CMYK percentages

Cyan34.6%
Magenta56.4%
Yellow0.0%
Key (black)17.3%

Color previews

#8a5cd3 text on a black background

contrast 4.55:1

Card sample

#8a5cd3 text on a white background

contrast 4.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8a5cd3

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8a5cd3 in the Color Lab