#802C8D#802C8D

#802C8D is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.8% C 0.167 H 322.0°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#802C8D
RGBrgb(128, 44, 141)
HSLhsl(292, 52%, 36%)
HSVhsv(292, 69%, 55%)
CMYKcmyk(9.2%, 68.8%, 0%, 44.7%)
CIE-LABlab(34.63, 49.61, -36.83)
CIE-LCHlch(34.63, 61.79, 323.41°)
OKLaboklab(45.8% 0.1317 -0.1027)
OKLCHoklch(45.8% 0.167 322)
XYZxyz(14.6100, 8.3144, 26.0294)
Luminance0.0831 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802C8D #398D2C
analogous
#502C8D #802C8D #8D2C6A
triadic
#802C8D #8D802C #2C8D80
tetradic
#802C8D #8D502C #398D2C #2C6A8D
square
#802C8D #8D502C #398D2C #2C6A8D
split-complementary
#802C8D #6A8D2C #2C8D50
monochromatic
#2B0F30 #561D5E #802C8D #AA3BBC #C165CF

Accessibility & contrast

On white

7.89
#802C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#802C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802C8D
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802C8D#FFFFFF#000000##FFFFFF
##802C8D1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4B90
Deuteranopia (green-blind)
#39558B
Tritanopia (blue-blind)
#823C59
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #802c8d;
/* rgb */ color: rgb(128, 44, 141);
/* oklch */ color: oklch(45.8% 0.167 322.0);
Tailwind
colors: {
  custom: {
    50: '#a86caf',
    500: '#802c8d',
    950: '#000000',
  },
}
SCSS
$custom: #802c8d;
$custom-light: #a86caf;
$custom-dark: #000000;
JSON
{
  "hex": "#802c8d",
  "rgb": {
    "r": 128,
    "g": 44,
    "b": 141
  },
  "hsl": {
    "h": 291.959,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45795,
    "c": 0.16703,
    "h": 322
  },
  "luminance": 0.08314
}

Semantic roles & 50–950 ramp

primary
#802C8D
secondary
#6BB560
accent
#DC4C5F
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #802C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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