#801872#801872

#801872 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.4% C 0.168 H 334.5°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#801872
RGBrgb(128, 24, 114)
HSLhsl(308, 68%, 30%)
HSVhsv(308, 81%, 50%)
CMYKcmyk(0%, 81.3%, 10.9%, 49.8%)
CIE-LABlab(30.54, 52.07, -26.42)
CIE-LCHlch(30.54, 58.39, 333.09°)
OKLaboklab(42.36% 0.1516 -0.0724)
OKLCHoklch(42.36% 0.168 334.5)
XYZxyz(12.2661, 6.4585, 16.5169)
Luminance0.0646 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#801872 #188026
analogous
#5A1880 #801872 #80183E
triadic
#801872 #728018 #187280
tetradic
#801872 #805A18 #188026 #183E80
square
#801872 #805A18 #188026 #183E80
split-complementary
#801872 #3E8018 #18805A
monochromatic
#1A0517 #4C0E44 #801872 #B422A0 #DA39C4

Accessibility & contrast

On white

9.16
#801872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#801872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #801872
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##801872#FFFFFF#000000##FFFFFF
##8018721.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163E74
Deuteranopia (green-blind)
#3E4D70
Tritanopia (blue-blind)
#862344
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #801872;
/* rgb */ color: rgb(128, 24, 114);
/* oklch */ color: oklch(42.4% 0.168 334.5);
Tailwind
colors: {
  custom: {
    50: '#a8639b',
    500: '#801872',
    950: '#000000',
  },
}
SCSS
$custom: #801872;
$custom-light: #a8639b;
$custom-dark: #000000;
JSON
{
  "hex": "#801872",
  "rgb": {
    "r": 128,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 308.077,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42357,
    "c": 0.16803,
    "h": 334.5
  },
  "luminance": 0.06457
}

Semantic roles & 50–950 ramp

primary
#801872
secondary
#40B44F
accent
#EB543D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #801872

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

Preview Lab → · Contrast checker → · Palette generator →

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