#802EA7#802EA7

#802EA7 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.8% C 0.189 H 312.4°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#802EA7
RGBrgb(128, 46, 167)
HSLhsl(281, 57%, 42%)
HSVhsv(281, 72%, 65%)
CMYKcmyk(23.4%, 72.5%, 0%, 34.5%)
CIE-LABlab(36.62, 54.09, -49.43)
CIE-LCHlch(36.62, 73.27, 317.58°)
OKLaboklab(47.76% 0.1276 -0.1396)
OKLCHoklch(47.76% 0.189 312.4)
XYZxyz(16.8529, 9.3337, 37.4655)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802EA7 #55A72E
analogous
#432EA7 #802EA7 #A72E92
triadic
#802EA7 #A7802E #2EA780
tetradic
#802EA7 #A7432E #55A72E #2E92A7
square
#802EA7 #A7432E #55A72E #2E92A7
split-complementary
#802EA7 #92A72E #2EA743
monochromatic
#361447 #5B2177 #802EA7 #A146CC #B976D9

Accessibility & contrast

On white

7.33
#802EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#802EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802EA7
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802EA7#FFFFFF#000000##FFFFFF
##802EA71.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AA
Deuteranopia (green-blind)
#2058A4
Tritanopia (blue-blind)
#7C4868
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #802ea7;
/* rgb */ color: rgb(128, 46, 167);
/* oklch */ color: oklch(47.8% 0.189 312.4);
Tailwind
colors: {
  custom: {
    50: '#a96ec2',
    500: '#802ea7',
    950: '#000000',
  },
}
SCSS
$custom: #802ea7;
$custom-light: #a96ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#802ea7",
  "rgb": {
    "r": 128,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 280.661,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47758,
    "c": 0.18914,
    "h": 312.4
  },
  "luminance": 0.09333
}

Semantic roles & 50–950 ramp

primary
#802EA7
secondary
#8AC170
accent
#E04879
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #802EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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