#811788#811788

#811788 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.8% C 0.186 H 325.3°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#811788
RGBrgb(129, 23, 136)
HSLhsl(296, 71%, 31%)
HSVhsv(296, 83%, 53%)
CMYKcmyk(5.1%, 83.1%, 0%, 46.7%)
CIE-LABlab(31.94, 56.18, -38.03)
CIE-LCHlch(31.94, 67.84, 325.90°)
OKLaboklab(43.81% 0.153 -0.106)
OKLCHoklch(43.81% 0.186 325.3)
XYZxyz(13.8033, 7.0584, 23.9232)
Luminance0.0706 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#811788 #1E8817
analogous
#481788 #811788 #881756
triadic
#811788 #888117 #178881
tetradic
#811788 #884817 #1E8817 #175688
square
#811788 #884817 #1E8817 #175688
split-complementary
#811788 #568817 #178848
monochromatic
#1E051F #4F0E54 #811788 #B320BC #D43BDE

Accessibility & contrast

On white

8.71
#811788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#811788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #811788
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##811788#FFFFFF#000000##FFFFFF
##8117881.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438B
Deuteranopia (green-blind)
#324F85
Tritanopia (blue-blind)
#842E51
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #811788;
/* rgb */ color: rgb(129, 23, 136);
/* oklch */ color: oklch(43.8% 0.186 325.3);
Tailwind
colors: {
  custom: {
    50: '#a964ab',
    500: '#811788',
    950: '#000000',
  },
}
SCSS
$custom: #811788;
$custom-light: #a964ab;
$custom-dark: #000000;
JSON
{
  "hex": "#811788",
  "rgb": {
    "r": 129,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 296.283,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43809,
    "c": 0.18619,
    "h": 325.3
  },
  "luminance": 0.07057
}

Semantic roles & 50–950 ramp

primary
#811788
secondary
#47BC3F
accent
#EE3A45
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #811788

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

Preview Lab → · Contrast checker → · Palette generator →

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