Skip to content

#802ef1

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

RGB
128, 46, 241
HSL
265°, 87%, 56%
CMYK
47, 81, 0, 6
Luminance
0.1289

Every format

HEX#802ef1
RGBrgb(128, 46, 241)
HSLhsl(265, 87%, 56%)
CMYKcmyk(47%, 81%, 0%, 6%)
LABlab(42.6 70.9 -82.6)
LCHlch(42.6 108.9 310.6)
OKLCHoklch(0.538 0.261 294.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#802ef1 on white: 5.87:1
AA ✓ pass · AA-large · AAA
Aa
#802ef1 on black: 3.58:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red50.2%
Green18.0%
Blue94.5%

CMYK percentages

Cyan46.9%
Magenta80.9%
Yellow0.0%
Key (black)5.5%

Color previews

#802ef1 text on a black background

contrast 3.58:1

Card sample

#802ef1 text on a white background

contrast 5.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #802ef1;
Background color
Panel with #802ef1 background
background-color: #802ef1;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(128, 46, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(128, 46, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #802ef1;
background: linear-gradient(135deg, #802ef1, #F12EE0);

Monochromatic scale

Palettes built from #802ef1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #802ef1 in the Color Lab