#802B8D#802B8D

#802B8D is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.7% C 0.168 H 322.1°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#802B8D
RGBrgb(128, 43, 141)
HSLhsl(292, 53%, 36%)
HSVhsv(292, 70%, 55%)
CMYKcmyk(9.2%, 69.5%, 0%, 44.7%)
CIE-LABlab(34.48, 50.03, -37.07)
CIE-LCHlch(34.48, 62.27, 323.46°)
OKLaboklab(45.69% 0.1328 -0.1034)
OKLCHoklch(45.69% 0.168 322.1)
XYZxyz(14.5732, 8.2408, 26.0172)
Luminance0.0824 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802B8D #388D2B
analogous
#4F2B8D #802B8D #8D2B69
triadic
#802B8D #8D802B #2B8D80
tetradic
#802B8D #8D4F2B #388D2B #2B698D
square
#802B8D #8D4F2B #388D2B #2B698D
split-complementary
#802B8D #698D2B #2B8D4F
monochromatic
#2B0E2F #551D5E #802B8D #AB39BC #C163CF

Accessibility & contrast

On white

7.93
#802B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #802B8D
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802B8D#FFFFFF#000000##FFFFFF
##802B8D1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4B90
Deuteranopia (green-blind)
#38548B
Tritanopia (blue-blind)
#823C58
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #802b8d;
/* rgb */ color: rgb(128, 43, 141);
/* oklch */ color: oklch(45.7% 0.168 322.1);
Tailwind
colors: {
  custom: {
    50: '#a86caf',
    500: '#802b8d',
    950: '#000000',
  },
}
SCSS
$custom: #802b8d;
$custom-light: #a86caf;
$custom-dark: #000000;
JSON
{
  "hex": "#802b8d",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 141
  },
  "hsl": {
    "h": 292.041,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45687,
    "c": 0.16836,
    "h": 322.1
  },
  "luminance": 0.0824
}

Semantic roles & 50–950 ramp

primary
#802B8D
secondary
#6AB65E
accent
#DD4B5E
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #802B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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