Skip to content

#804af5

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

RGB
128, 74, 245
HSL
259°, 90%, 63%
CMYK
48, 70, 0, 4
Luminance
0.1608

Every format

HEX#804af5
RGBrgb(128, 74, 245)
HSLhsl(259, 90%, 63%)
CMYKcmyk(48%, 70%, 0%, 4%)
LABlab(47.1 60.1 -77.5)
LCHlch(47.1 98.1 307.8)
OKLCHoklch(0.570 0.239 291.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#804af5 on white: 4.98:1
AA ✓ pass · AA-large · AAA
Aa
#804af5 on black: 4.22:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red50.2%
Green29.0%
Blue96.1%

CMYK percentages

Cyan47.8%
Magenta69.8%
Yellow0.0%
Key (black)3.9%

Color previews

#804af5 text on a black background

contrast 4.22:1

Card sample

#804af5 text on a white background

contrast 4.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #804af5

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #804af5 in the Color Lab