#802C9A#802C9A

#802C9A is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.6% C 0.179 H 317.0°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#802C9A
RGBrgb(128, 44, 154)
HSLhsl(286, 56%, 39%)
HSVhsv(286, 71%, 60%)
CMYKcmyk(16.9%, 71.4%, 0%, 39.6%)
CIE-LABlab(35.45, 52.20, -43.47)
CIE-LCHlch(35.45, 67.93, 320.22°)
OKLaboklab(46.64% 0.1311 -0.1221)
OKLCHoklch(46.64% 0.179 317)
XYZxyz(15.6346, 8.7243, 31.4260)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802C9A #469A2C
analogous
#492C9A #802C9A #9A2C7D
triadic
#802C9A #9A802C #2C9A80
tetradic
#802C9A #9A492C #469A2C #2C7D9A
square
#802C9A #9A492C #469A2C #2C7D9A
split-complementary
#802C9A #7D9A2C #2C9A49
monochromatic
#31113B #581E6A #802C9A #A63CC7 #BC6CD5

Accessibility & contrast

On white

7.65
#802C9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#802C9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802C9A
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802C9A#FFFFFF#000000##FFFFFF
##802C9A1.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9D
Deuteranopia (green-blind)
#2E5697
Tritanopia (blue-blind)
#7F4260
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #802c9a;
/* rgb */ color: rgb(128, 44, 154);
/* oklch */ color: oklch(46.6% 0.179 317.0);
Tailwind
colors: {
  custom: {
    50: '#a86db8',
    500: '#802c9a',
    950: '#000000',
  },
}
SCSS
$custom: #802c9a;
$custom-light: #a86db8;
$custom-dark: #000000;
JSON
{
  "hex": "#802c9a",
  "rgb": {
    "r": 128,
    "g": 44,
    "b": 154
  },
  "hsl": {
    "h": 285.818,
    "s": 55.556,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46644,
    "c": 0.17916,
    "h": 317
  },
  "luminance": 0.08724
}

Semantic roles & 50–950 ramp

primary
#802C9A
secondary
#7ABC66
accent
#DF496C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802C9A

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

Preview Lab → · Contrast checker → · Palette generator →

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