#802C8A#802C8A

#802C8A is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.6% C 0.164 H 323.3°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#802C8A
RGBrgb(128, 44, 138)
HSLhsl(294, 52%, 36%)
HSVhsv(294, 68%, 54%)
CMYKcmyk(7.2%, 68.1%, 0%, 45.9%)
CIE-LABlab(34.45, 49.03, -35.27)
CIE-LCHlch(34.45, 60.40, 324.27°)
OKLaboklab(45.61% 0.1317 -0.0982)
OKLCHoklch(45.61% 0.164 323.3)
XYZxyz(14.3898, 8.2264, 24.8697)
Luminance0.0823 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802C8A #368A2C
analogous
#512C8A #802C8A #8A2C65
triadic
#802C8A #8A802C #2C8A80
tetradic
#802C8A #8A512C #368A2C #2C658A
square
#802C8A #8A512C #368A2C #2C658A
split-complementary
#802C8A #658A2C #2C8A51
monochromatic
#2A0E2D #551D5C #802C8A #AB3BB8 #C263CD

Accessibility & contrast

On white

7.94
#802C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#802C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802C8A
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802C8A#FFFFFF#000000##FFFFFF
##802C8A1.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154B8D
Deuteranopia (green-blind)
#3B5488
Tritanopia (blue-blind)
#823B57
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #802c8a;
/* rgb */ color: rgb(128, 44, 138);
/* oklch */ color: oklch(45.6% 0.164 323.3);
Tailwind
colors: {
  custom: {
    50: '#a86cac',
    500: '#802c8a',
    950: '#000000',
  },
}
SCSS
$custom: #802c8a;
$custom-light: #a86cac;
$custom-dark: #000000;
JSON
{
  "hex": "#802c8a",
  "rgb": {
    "r": 128,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 293.617,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45608,
    "c": 0.16429,
    "h": 323.3
  },
  "luminance": 0.08226
}

Semantic roles & 50–950 ramp

primary
#802C8A
secondary
#67B45E
accent
#DB4D5C
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #802C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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