#802873#802873

#802873 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 43.8% C 0.150 H 334.3°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#802873
RGBrgb(128, 40, 115)
HSLhsl(309, 52%, 33%)
HSVhsv(309, 69%, 50%)
CMYKcmyk(0%, 68.8%, 10.2%, 49.8%)
CIE-LABlab(32.58, 46.59, -23.85)
CIE-LCHlch(32.58, 52.34, 332.89°)
OKLaboklab(43.85% 0.1351 -0.0651)
OKLCHoklch(43.85% 0.15 334.3)
XYZxyz(12.7555, 7.3456, 16.9624)
Luminance0.0735 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802873 #288035
analogous
#612880 #802873 #802847
triadic
#802873 #738028 #287380
tetradic
#802873 #806128 #288035 #284780
square
#802873 #806128 #288035 #284780
split-complementary
#802873 #478028 #288061
monochromatic
#230B1F #511949 #802873 #AF379D #CB58BA

Accessibility & contrast

On white

8.51
#802873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#802873 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802873
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802873#FFFFFF#000000##FFFFFF
##8028731.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274475
Deuteranopia (green-blind)
#445171
Tritanopia (blue-blind)
#862F4A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #802873;
/* rgb */ color: rgb(128, 40, 115);
/* oklch */ color: oklch(43.8% 0.150 334.3);
Tailwind
colors: {
  custom: {
    50: '#a8699b',
    500: '#802873',
    950: '#000000',
  },
}
SCSS
$custom: #802873;
$custom-light: #a8699b;
$custom-dark: #000000;
JSON
{
  "hex": "#802873",
  "rgb": {
    "r": 128,
    "g": 40,
    "b": 115
  },
  "hsl": {
    "h": 308.864,
    "s": 52.381,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43846,
    "c": 0.15001,
    "h": 334.3
  },
  "luminance": 0.07345
}

Semantic roles & 50–950 ramp

primary
#802873
secondary
#54B062
accent
#DC614C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #802873

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

Preview Lab → · Contrast checker → · Palette generator →

#802873 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva