#811F9B#811F9B

#811F9B is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.7% C 0.195 H 317.9°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#811F9B
RGBrgb(129, 31, 155)
HSLhsl(287, 67%, 36%)
HSVhsv(287, 80%, 61%)
CMYKcmyk(16.8%, 80%, 0%, 39.2%)
CIE-LABlab(34.01, 57.36, -46.38)
CIE-LCHlch(34.01, 73.76, 321.04°)
OKLaboklab(45.68% 0.1445 -0.1305)
OKLCHoklch(45.68% 0.195 317.9)
XYZxyz(15.4588, 8.0144, 31.7366)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#811F9B #399B1F
analogous
#431F9B #811F9B #9B1F77
triadic
#811F9B #9B811F #1F9B81
tetradic
#811F9B #9B431F #399B1F #1F779B
square
#811F9B #9B431F #399B1F #1F779B
split-complementary
#811F9B #779B1F #1F9B43
monochromatic
#2C0B35 #571568 #811F9B #AB29CE #C157DD

Accessibility & contrast

On white

8.07
#811F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#811F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #811F9B
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##811F9B#FFFFFF#000000##FFFFFF
##811F9B1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#245398
Tritanopia (blue-blind)
#803B5D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #811f9b;
/* rgb */ color: rgb(129, 31, 155);
/* oklch */ color: oklch(45.7% 0.195 317.9);
Tailwind
colors: {
  custom: {
    50: '#aa67b9',
    500: '#811f9b',
    950: '#000000',
  },
}
SCSS
$custom: #811f9b;
$custom-light: #aa67b9;
$custom-dark: #000000;
JSON
{
  "hex": "#811f9b",
  "rgb": {
    "r": 129,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 287.419,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45679,
    "c": 0.19472,
    "h": 317.9
  },
  "luminance": 0.08014
}

Semantic roles & 50–950 ramp

primary
#811F9B
secondary
#6BC155
accent
#EA3E62
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #811F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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