Skip to content

#802eff

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

RGB
128, 46, 255
HSL
264°, 100%, 59%
CMYK
50, 82, 0, 0
Luminance
0.1376

Every format

HEX#802eff
RGBrgb(128, 46, 255)
HSLhsl(264, 100%, 59%)
CMYKcmyk(50%, 82%, 0%, 0%)
LABlab(43.9 74.3 -88.4)
LCHlch(43.9 115.4 310.0)
OKLCHoklch(0.551 0.275 292.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#802eff on white: 5.60:1
AA ✓ pass · AA-large · AAA
Aa
#802eff on black: 3.75:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red50.2%
Green18.0%
Blue100.0%

CMYK percentages

Cyan49.8%
Magenta82.0%
Yellow0.0%
Key (black)0.0%

Color previews

#802eff text on a black background

contrast 3.75:1

Card sample

#802eff text on a white background

contrast 5.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #802eff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #802eff in the Color Lab