Skip to content

#802ace

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

RGB
128, 42, 206
HSL
272°, 66%, 49%
CMYK
38, 80, 0, 19
Luminance
0.1070

Every format

HEX#802ace
RGBrgb(128, 42, 206)
HSLhsl(272, 66%, 49%)
CMYKcmyk(38%, 80%, 0%, 19%)
LABlab(39.1 64.3 -68.4)
LCHlch(39.1 93.9 313.2)
OKLCHoklch(0.504 0.231 302.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#802ace on white: 6.69:1
AA ✓ pass · AA-large · AAA
Aa
#802ace on black: 3.14:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red50.2%
Green16.5%
Blue80.8%

CMYK percentages

Cyan37.9%
Magenta79.6%
Yellow0.0%
Key (black)19.2%

Color previews

#802ace text on a black background

contrast 3.14:1

Card sample

#802ace text on a white background

contrast 6.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #802ace

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #802ace in the Color Lab