#802EA6#802EA6

#802EA6 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.7% C 0.188 H 312.7°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#802EA6
RGBrgb(128, 46, 166)
HSLhsl(281, 57%, 42%)
HSVhsv(281, 72%, 65%)
CMYKcmyk(22.9%, 72.3%, 0%, 34.9%)
CIE-LABlab(36.55, 53.88, -48.94)
CIE-LCHlch(36.55, 72.79, 317.75°)
OKLaboklab(47.69% 0.1277 -0.1382)
OKLCHoklch(47.69% 0.188 312.7)
XYZxyz(16.7608, 9.2968, 36.9806)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802EA6 #54A62E
analogous
#442EA6 #802EA6 #A62E90
triadic
#802EA6 #A6802E #2EA680
tetradic
#802EA6 #A6442E #54A62E #2E90A6
square
#802EA6 #A6442E #54A62E #2E90A6
split-complementary
#802EA6 #90A62E #2EA644
monochromatic
#361346 #5B2176 #802EA6 #A146CC #B976D9

Accessibility & contrast

On white

7.34
#802EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#802EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802EA6
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802EA6#FFFFFF#000000##FFFFFF
##802EA61.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A9
Deuteranopia (green-blind)
#2258A3
Tritanopia (blue-blind)
#7C4867
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #802ea6;
/* rgb */ color: rgb(128, 46, 166);
/* oklch */ color: oklch(47.7% 0.188 312.7);
Tailwind
colors: {
  custom: {
    50: '#a96ec1',
    500: '#802ea6',
    950: '#000000',
  },
}
SCSS
$custom: #802ea6;
$custom-light: #a96ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#802ea6",
  "rgb": {
    "r": 128,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 281,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47686,
    "c": 0.18818,
    "h": 312.7
  },
  "luminance": 0.09296
}

Semantic roles & 50–950 ramp

primary
#802EA6
secondary
#89C16F
accent
#E04878
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #802EA6

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#802EA6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva