#811B9D#811B9D

#811B9D is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.5% C 0.200 H 317.4°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#811B9D
RGBrgb(129, 27, 157)
HSLhsl(287, 71%, 36%)
HSVhsv(287, 83%, 62%)
CMYKcmyk(17.8%, 82.8%, 0%, 38.4%)
CIE-LABlab(33.74, 58.93, -48.03)
CIE-LCHlch(33.74, 76.02, 320.82°)
OKLaboklab(45.54% 0.1472 -0.1354)
OKLCHoklch(45.54% 0.2 317.4)
XYZxyz(15.5301, 7.8860, 32.5959)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#811B9D #379D1B
analogous
#401B9D #811B9D #9D1B78
triadic
#811B9D #9D811B #1B9D81
tetradic
#811B9D #9D401B #379D1B #1B789D
square
#811B9D #9D401B #379D1B #1B789D
split-complementary
#811B9D #789D1B #1B9D40
monochromatic
#2B0935 #561269 #811B9D #AC24D1 #C251E1

Accessibility & contrast

On white

8.15
#811B9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#811B9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #811B9D
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##811B9D#FFFFFF#000000##FFFFFF
##811B9D1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A0
Deuteranopia (green-blind)
#1E529A
Tritanopia (blue-blind)
#803A5E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #811b9d;
/* rgb */ color: rgb(129, 27, 157);
/* oklch */ color: oklch(45.5% 0.200 317.4);
Tailwind
colors: {
  custom: {
    50: '#aa66bb',
    500: '#811b9d',
    950: '#000000',
  },
}
SCSS
$custom: #811b9d;
$custom-light: #aa66bb;
$custom-dark: #000000;
JSON
{
  "hex": "#811b9d",
  "rgb": {
    "r": 129,
    "g": 27,
    "b": 157
  },
  "hsl": {
    "h": 287.077,
    "s": 70.652,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45535,
    "c": 0.19998,
    "h": 317.4
  },
  "luminance": 0.07885
}

Semantic roles & 50–950 ramp

primary
#811B9D
secondary
#69C450
accent
#ED3A61
background
#FAF6FB
surface
#F5EBF6
border
#CFC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #811B9D

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

Preview Lab → · Contrast checker → · Palette generator →

#811B9D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva