#802173#802173

#802173 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.1% C 0.159 H 334.1°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#802173
RGBrgb(128, 33, 115)
HSLhsl(308, 59%, 32%)
HSVhsv(308, 74%, 50%)
CMYKcmyk(0%, 74.2%, 10.2%, 49.8%)
CIE-LABlab(31.61, 49.31, -25.37)
CIE-LCHlch(31.61, 55.45, 332.77°)
OKLaboklab(43.15% 0.1431 -0.0694)
OKLCHoklch(43.15% 0.159 334.1)
XYZxyz(12.5406, 6.9158, 16.8907)
Luminance0.0692 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802173 #21802E
analogous
#5E2180 #802173 #802144
triadic
#802173 #738021 #217380
tetradic
#802173 #805E21 #21802E #214480
square
#802173 #805E21 #21802E #214480
split-complementary
#802173 #448021 #21805E
monochromatic
#1F081C #4F1447 #802173 #B12E9F #D14BBE

Accessibility & contrast

On white

8.81
#802173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#802173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802173
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802173#FFFFFF#000000##FFFFFF
##8021731.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4275
Deuteranopia (green-blind)
#414F71
Tritanopia (blue-blind)
#862947
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #802173;
/* rgb */ color: rgb(128, 33, 115);
/* oklch */ color: oklch(43.1% 0.159 334.1);
Tailwind
colors: {
  custom: {
    50: '#a8669b',
    500: '#802173',
    950: '#000000',
  },
}
SCSS
$custom: #802173;
$custom-light: #a8669b;
$custom-dark: #000000;
JSON
{
  "hex": "#802173",
  "rgb": {
    "r": 128,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 308.211,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43146,
    "c": 0.15907,
    "h": 334.1
  },
  "luminance": 0.06915
}

Semantic roles & 50–950 ramp

primary
#802173
secondary
#4AB358
accent
#E25B46
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #802173

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

Preview Lab → · Contrast checker → · Palette generator →

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