#802EA8#802EA8

#802EA8 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.8% C 0.190 H 312.1°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#802EA8
RGBrgb(128, 46, 168)
HSLhsl(280, 57%, 42%)
HSVhsv(280, 73%, 66%)
CMYKcmyk(23.8%, 72.6%, 0%, 34.1%)
CIE-LABlab(36.69, 54.31, -49.91)
CIE-LCHlch(36.69, 73.76, 317.41°)
OKLaboklab(47.83% 0.1275 -0.1411)
OKLCHoklch(47.83% 0.19 312.1)
XYZxyz(16.9457, 9.3708, 37.9543)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802EA8 #56A82E
analogous
#432EA8 #802EA8 #A82E93
triadic
#802EA8 #A8802E #2EA880
tetradic
#802EA8 #A8432E #56A82E #2E93A8
square
#802EA8 #A8432E #56A82E #2E93A8
split-complementary
#802EA8 #93A82E #2EA843
monochromatic
#371448 #5B2178 #802EA8 #A147CD #B977DA

Accessibility & contrast

On white

7.31
#802EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #802EA8
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802EA8#FFFFFF#000000##FFFFFF
##802EA81.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#1F58A5
Tritanopia (blue-blind)
#7B4968
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #802ea8;
/* rgb */ color: rgb(128, 46, 168);
/* oklch */ color: oklch(47.8% 0.190 312.1);
Tailwind
colors: {
  custom: {
    50: '#a96ec3',
    500: '#802ea8',
    950: '#000000',
  },
}
SCSS
$custom: #802ea8;
$custom-light: #a96ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#802ea8",
  "rgb": {
    "r": 128,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 280.328,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47829,
    "c": 0.19012,
    "h": 312.1
  },
  "luminance": 0.0937
}

Semantic roles & 50–950 ramp

primary
#802EA8
secondary
#8BC270
accent
#E0487A
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #802EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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