#802B7E#802B7E

#802B7E is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.8% C 0.155 H 328.7°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#802B7E
RGBrgb(128, 43, 126)
HSLhsl(301, 50%, 34%)
HSVhsv(301, 66%, 50%)
CMYKcmyk(0%, 66.4%, 1.6%, 49.8%)
CIE-LABlab(33.61, 47.23, -29.15)
CIE-LCHlch(33.61, 55.50, 328.32°)
OKLaboklab(44.78% 0.1325 -0.0804)
OKLCHoklch(44.78% 0.155 328.7)
XYZxyz(13.5317, 7.8242, 20.5321)
Luminance0.0782 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802B7E #2B802D
analogous
#572B80 #802B7E #802B53
triadic
#802B7E #7E802B #2B7E80
tetradic
#802B7E #80572B #2B802D #2B5380
square
#802B7E #80572B #2B802D #2B5380
split-complementary
#802B7E #53802B #2B8057
monochromatic
#240C24 #521C51 #802B7E #AE3AAB #C95DC6

Accessibility & contrast

On white

8.19
#802B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #802B7E
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802B7E#FFFFFF#000000##FFFFFF
##802B7E1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214880
Deuteranopia (green-blind)
#41537C
Tritanopia (blue-blind)
#843650
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #802b7e;
/* rgb */ color: rgb(128, 43, 126);
/* oklch */ color: oklch(44.8% 0.155 328.7);
Tailwind
colors: {
  custom: {
    50: '#a86ba4',
    500: '#802b7e',
    950: '#000000',
  },
}
SCSS
$custom: #802b7e;
$custom-light: #a86ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#802b7e",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 126
  },
  "hsl": {
    "h": 301.412,
    "s": 49.708,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44783,
    "c": 0.15498,
    "h": 328.7
  },
  "luminance": 0.07823
}

Semantic roles & 50–950 ramp

primary
#802B7E
secondary
#58AE5A
accent
#D9524F
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #802B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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