#801172#801172

#801172 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.9% C 0.174 H 334.4°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#801172
RGBrgb(128, 17, 114)
HSLhsl(308, 77%, 28%)
HSVhsv(308, 87%, 50%)
CMYKcmyk(0%, 86.7%, 10.9%, 49.8%)
CIE-LABlab(29.93, 53.84, -27.39)
CIE-LCHlch(29.93, 60.41, 333.04°)
OKLaboklab(41.92% 0.1569 -0.0751)
OKLCHoklch(41.92% 0.174 334.4)
XYZxyz(12.1400, 6.2061, 16.4749)
Luminance0.0621 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#801172 #11801F
analogous
#561180 #801172 #80113A
triadic
#801172 #728011 #117280
tetradic
#801172 #805611 #11801F #113A80
square
#801172 #805611 #11801F #113A80
split-complementary
#801172 #3A8011 #118056
monochromatic
#1B0418 #4A0A42 #801172 #B618A2 #E329CB

Accessibility & contrast

On white

9.37
#801172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#801172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #801172
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##801172#FFFFFF#000000##FFFFFF
##8011721.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3C74
Deuteranopia (green-blind)
#3C4C70
Tritanopia (blue-blind)
#871E43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #801172;
/* rgb */ color: rgb(128, 17, 114);
/* oklch */ color: oklch(41.9% 0.174 334.4);
Tailwind
colors: {
  custom: {
    50: '#a9619b',
    500: '#801172',
    950: '#000000',
  },
}
SCSS
$custom: #801172;
$custom-light: #a9619b;
$custom-dark: #000000;
JSON
{
  "hex": "#801172",
  "rgb": {
    "r": 128,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 307.568,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41919,
    "c": 0.17396,
    "h": 334.4
  },
  "luminance": 0.06205
}

Semantic roles & 50–950 ramp

primary
#801172
secondary
#37B647
accent
#F34D35
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #801172

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

Preview Lab → · Contrast checker → · Palette generator →

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