#802371#802371

#802371 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.2% C 0.155 H 335.2°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#802371
RGBrgb(128, 35, 113)
HSLhsl(310, 57%, 32%)
HSVhsv(310, 73%, 50%)
CMYKcmyk(0%, 72.7%, 11.7%, 49.8%)
CIE-LABlab(31.77, 48.25, -23.85)
CIE-LCHlch(31.77, 53.82, 333.69°)
OKLaboklab(43.23% 0.1407 -0.0651)
OKLCHoklch(43.23% 0.155 335.2)
XYZxyz(12.4839, 6.9846, 16.3103)
Luminance0.0698 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802371 #238032
analogous
#602380 #802371 #802343
triadic
#802371 #718023 #237180
tetradic
#802371 #806023 #238032 #234380
square
#802371 #806023 #238032 #234380
split-complementary
#802371 #438023 #238060
monochromatic
#20091C #501647 #802371 #B0309B #CF4FBA

Accessibility & contrast

On white

8.76
#802371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#802371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802371
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802371#FFFFFF#000000##FFFFFF
##8023711.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234273
Deuteranopia (green-blind)
#43506F
Tritanopia (blue-blind)
#862A47
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #802371;
/* rgb */ color: rgb(128, 35, 113);
/* oklch */ color: oklch(43.2% 0.155 335.2);
Tailwind
colors: {
  custom: {
    50: '#a8679a',
    500: '#802371',
    950: '#000000',
  },
}
SCSS
$custom: #802371;
$custom-light: #a8679a;
$custom-dark: #000000;
JSON
{
  "hex": "#802371",
  "rgb": {
    "r": 128,
    "g": 35,
    "b": 113
  },
  "hsl": {
    "h": 309.677,
    "s": 57.055,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43226,
    "c": 0.15507,
    "h": 335.2
  },
  "luminance": 0.06984
}

Semantic roles & 50–950 ramp

primary
#802371
secondary
#4DB25D
accent
#E06047
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #802371

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

Preview Lab → · Contrast checker → · Palette generator →

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