#802E9A#802E9A

#802E9A is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.9% C 0.177 H 316.9°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#802E9A
RGBrgb(128, 46, 154)
HSLhsl(286, 54%, 39%)
HSVhsv(286, 70%, 60%)
CMYKcmyk(16.9%, 70.1%, 0%, 39.6%)
CIE-LABlab(35.75, 51.36, -42.99)
CIE-LCHlch(35.75, 66.98, 320.07°)
OKLaboklab(46.86% 0.1289 -0.1207)
OKLCHoklch(46.86% 0.177 316.9)
XYZxyz(15.7109, 8.8769, 31.4514)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802E9A #489A2E
analogous
#4A2E9A #802E9A #9A2E7E
triadic
#802E9A #9A802E #2E9A80
tetradic
#802E9A #9A4A2E #489A2E #2E7E9A
square
#802E9A #9A4A2E #489A2E #2E7E9A
split-complementary
#802E9A #7E9A2E #2E9A4A
monochromatic
#32123C #59206B #802E9A #A53FC6 #BB6FD4

Accessibility & contrast

On white

7.57
#802E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#802E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802E9A
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802E9A#FFFFFF#000000##FFFFFF
##802E9A1.007.572.787.57
#FFFFFF7.571.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9D
Deuteranopia (green-blind)
#305697
Tritanopia (blue-blind)
#7F4360
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #802e9a;
/* rgb */ color: rgb(128, 46, 154);
/* oklch */ color: oklch(46.9% 0.177 316.9);
Tailwind
colors: {
  custom: {
    50: '#a86eb8',
    500: '#802e9a',
    950: '#000000',
  },
}
SCSS
$custom: #802e9a;
$custom-light: #a86eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#802e9a",
  "rgb": {
    "r": 128,
    "g": 46,
    "b": 154
  },
  "hsl": {
    "h": 285.556,
    "s": 54,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46857,
    "c": 0.17662,
    "h": 316.9
  },
  "luminance": 0.08876
}

Semantic roles & 50–950 ramp

primary
#802E9A
secondary
#7DBB69
accent
#DD4A6E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #802E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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