#801871#801871

#801871 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.167 H 335.0°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#801871
RGBrgb(128, 24, 113)
HSLhsl(309, 68%, 30%)
HSVhsv(309, 81%, 50%)
CMYKcmyk(0%, 81.3%, 11.7%, 49.8%)
CIE-LABlab(30.49, 51.91, -25.87)
CIE-LCHlch(30.49, 58.00, 333.51°)
OKLaboklab(42.3% 0.1516 -0.0708)
OKLCHoklch(42.3% 0.167 335)
XYZxyz(12.2095, 6.4358, 16.2188)
Luminance0.0644 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#801871 #188027
analogous
#5B1880 #801871 #80183D
triadic
#801871 #718018 #187180
tetradic
#801871 #805B18 #188027 #183D80
square
#801871 #805B18 #188027 #183D80
split-complementary
#801871 #3D8018 #18805B
monochromatic
#1A0517 #4C0E44 #801871 #B4229E #DA39C3

Accessibility & contrast

On white

9.18
#801871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #801871
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##801871#FFFFFF#000000##FFFFFF
##8018711.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173E73
Deuteranopia (green-blind)
#3F4D6F
Tritanopia (blue-blind)
#872244
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #801871;
/* rgb */ color: rgb(128, 24, 113);
/* oklch */ color: oklch(42.3% 0.167 335.0);
Tailwind
colors: {
  custom: {
    50: '#a8639a',
    500: '#801871',
    950: '#000000',
  },
}
SCSS
$custom: #801871;
$custom-light: #a8639a;
$custom-dark: #000000;
JSON
{
  "hex": "#801871",
  "rgb": {
    "r": 128,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 308.654,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42301,
    "c": 0.16731,
    "h": 335
  },
  "luminance": 0.06435
}

Semantic roles & 50–950 ramp

primary
#801871
secondary
#40B450
accent
#EB563D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #801871

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

Preview Lab → · Contrast checker → · Palette generator →

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