#802B7D#802B7D

#802B7D is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.7% C 0.154 H 329.2°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#802B7D
RGBrgb(128, 43, 125)
HSLhsl(302, 50%, 34%)
HSVhsv(302, 66%, 50%)
CMYKcmyk(0%, 66.4%, 2.3%, 49.8%)
CIE-LABlab(33.56, 47.05, -28.61)
CIE-LCHlch(33.56, 55.06, 328.70°)
OKLaboklab(44.73% 0.1324 -0.0788)
OKLCHoklch(44.73% 0.154 329.2)
XYZxyz(13.4675, 7.7986, 20.1940)
Luminance0.0780 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802B7D #2B802E
analogous
#582B80 #802B7D #802B52
triadic
#802B7D #7D802B #2B7D80
tetradic
#802B7D #80582B #2B802E #2B5280
square
#802B7D #80582B #2B802E #2B5280
split-complementary
#802B7D #52802B #2B8058
monochromatic
#240C24 #521C50 #802B7D #AE3AAA #C95DC5

Accessibility & contrast

On white

8.20
#802B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#802B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802B7D
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802B7D#FFFFFF#000000##FFFFFF
##802B7D1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22487F
Deuteranopia (green-blind)
#41537B
Tritanopia (blue-blind)
#843550
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #802b7d;
/* rgb */ color: rgb(128, 43, 125);
/* oklch */ color: oklch(44.7% 0.154 329.2);
Tailwind
colors: {
  custom: {
    50: '#a86ba3',
    500: '#802b7d',
    950: '#000000',
  },
}
SCSS
$custom: #802b7d;
$custom-light: #a86ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#802b7d",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 125
  },
  "hsl": {
    "h": 302.118,
    "s": 49.708,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44726,
    "c": 0.15412,
    "h": 329.2
  },
  "luminance": 0.07798
}

Semantic roles & 50–950 ramp

primary
#802B7D
secondary
#58AE5B
accent
#D9534F
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #802B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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