#802C8B#802C8B

#802C8B is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.7% C 0.165 H 322.9°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#802C8B
RGBrgb(128, 44, 139)
HSLhsl(293, 52%, 36%)
HSVhsv(293, 68%, 55%)
CMYKcmyk(7.9%, 68.3%, 0%, 45.5%)
CIE-LABlab(34.51, 49.22, -35.79)
CIE-LCHlch(34.51, 60.86, 323.98°)
OKLaboklab(45.67% 0.1317 -0.0997)
OKLCHoklch(45.67% 0.165 322.9)
XYZxyz(14.4625, 8.2554, 25.2528)
Luminance0.0825 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802C8B #378B2C
analogous
#502C8B #802C8B #8B2C66
triadic
#802C8B #8B802C #2C8B80
tetradic
#802C8B #8B502C #378B2C #2C668B
square
#802C8B #8B502C #378B2C #2C668B
split-complementary
#802C8B #668B2C #2C8B50
monochromatic
#2A0F2E #551D5D #802C8B #AB3BB9 #C264CE

Accessibility & contrast

On white

7.92
#802C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #802C8B
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802C8B#FFFFFF#000000##FFFFFF
##802C8B1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134B8E
Deuteranopia (green-blind)
#3A5489
Tritanopia (blue-blind)
#823C58
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #802c8b;
/* rgb */ color: rgb(128, 44, 139);
/* oklch */ color: oklch(45.7% 0.165 322.9);
Tailwind
colors: {
  custom: {
    50: '#a86cad',
    500: '#802c8b',
    950: '#000000',
  },
}
SCSS
$custom: #802c8b;
$custom-light: #a86cad;
$custom-dark: #000000;
JSON
{
  "hex": "#802c8b",
  "rgb": {
    "r": 128,
    "g": 44,
    "b": 139
  },
  "hsl": {
    "h": 293.053,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4567,
    "c": 0.1652,
    "h": 322.9
  },
  "luminance": 0.08255
}

Semantic roles & 50–950 ramp

primary
#802C8B
secondary
#69B45F
accent
#DB4C5D
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #802C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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