Skip to content

#804cdf

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

RGB
128, 76, 223
HSL
261°, 70%, 59%
CMYK
43, 66, 0, 13
Luminance
0.1509

Every format

HEX#804cdf
RGBrgb(128, 76, 223)
HSLhsl(261, 70%, 59%)
CMYKcmyk(43%, 66%, 0%, 13%)
LABlab(45.8 53.4 -67.3)
LCHlch(45.8 85.9 308.4)
OKLCHoklch(0.556 0.212 294.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#804cdf on white: 5.23:1
AA ✓ pass · AA-large · AAA
Aa
#804cdf on black: 4.02:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red50.2%
Green29.8%
Blue87.5%

CMYK percentages

Cyan42.6%
Magenta65.9%
Yellow0.0%
Key (black)12.5%

Color previews

#804cdf text on a black background

contrast 4.02:1

Card sample

#804cdf text on a white background

contrast 5.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(128, 76, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(128, 76, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #804cdf;
background: linear-gradient(135deg, #804cdf, #DF4CDC);

Monochromatic scale

Palettes built from #804cdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #804cdf in the Color Lab