Skip to content

#8049a5

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

RGB
128, 73, 165
HSL
276°, 39%, 47%
CMYK
22, 56, 0, 35
Luminance
0.1207

Every format

HEX#8049a5
RGBrgb(128, 73, 165)
HSLhsl(276, 39%, 47%)
CMYKcmyk(22%, 56%, 0%, 35%)
LABlab(41.3 40.4 -40.7)
LCHlch(41.3 57.4 314.8)
OKLCHoklch(0.511 0.148 309.7)

Copy-ready code

/* CSS */
color: #8049a5;
background-color: #8049a5;
/* Tailwind (arbitrary) */
class="text-[#8049a5] bg-[#8049a5]"
/* SCSS */
$brand: #8049a5;
/* SwiftUI */
Color(red: 0.502, green: 0.286, blue: 0.647)
/* Android */
Color.parseColor("#8049a5")

Accessibility — WCAG contrast

Aa
#8049a5 on white: 6.15:1
AA ✓ pass · AA-large · AAA
Aa
#8049a5 on black: 3.41:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red50.2%
Green28.6%
Blue64.7%

CMYK percentages

Cyan22.4%
Magenta55.8%
Yellow0.0%
Key (black)35.3%

Color previews

#8049a5 text on a black background

contrast 3.41:1

Card sample

#8049a5 text on a white background

contrast 6.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(128, 73, 165, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(128, 73, 165, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8049a5;
background: linear-gradient(135deg, #8049a5, #A5498D);

Monochromatic scale

Palettes built from #8049a5

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8049a5 in the Color Lab