#801F9A#801F9A

#801F9A is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.5% C 0.193 H 317.8°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#801F9A
RGBrgb(128, 31, 154)
HSLhsl(287, 66%, 36%)
HSVhsv(287, 80%, 60%)
CMYKcmyk(16.9%, 79.9%, 0%, 39.6%)
CIE-LABlab(33.78, 56.97, -46.15)
CIE-LCHlch(33.78, 73.32, 320.99°)
OKLaboklab(45.46% 0.1434 -0.1299)
OKLCHoklch(45.46% 0.193 317.8)
XYZxyz(15.2240, 7.9030, 31.2891)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#801F9A #399A1F
analogous
#431F9A #801F9A #9A1F77
triadic
#801F9A #9A801F #1F9A80
tetradic
#801F9A #9A431F #399A1F #1F779A
square
#801F9A #9A431F #399A1F #1F779A
split-complementary
#801F9A #779A1F #1F9A43
monochromatic
#2B0A34 #561567 #801F9A #AA29CD #C156DD

Accessibility & contrast

On white

8.14
#801F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#801F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #801F9A
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##801F9A#FFFFFF#000000##FFFFFF
##801F9A1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9D
Deuteranopia (green-blind)
#245297
Tritanopia (blue-blind)
#7F3B5D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #801f9a;
/* rgb */ color: rgb(128, 31, 154);
/* oklch */ color: oklch(45.5% 0.193 317.8);
Tailwind
colors: {
  custom: {
    50: '#a967b8',
    500: '#801f9a',
    950: '#000000',
  },
}
SCSS
$custom: #801f9a;
$custom-light: #a967b8;
$custom-dark: #000000;
JSON
{
  "hex": "#801f9a",
  "rgb": {
    "r": 128,
    "g": 31,
    "b": 154
  },
  "hsl": {
    "h": 287.317,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4546,
    "c": 0.19349,
    "h": 317.8
  },
  "luminance": 0.07902
}

Semantic roles & 50–950 ramp

primary
#801F9A
secondary
#6BC154
accent
#E93E63
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #801F9A

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

Preview Lab → · Contrast checker → · Palette generator →

#801F9A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva