#811D7E#811D7E

#811D7E is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.6% C 0.173 H 329.4°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#811D7E
RGBrgb(129, 29, 126)
HSLhsl(302, 63%, 31%)
HSVhsv(302, 78%, 51%)
CMYKcmyk(0%, 77.5%, 2.3%, 49.4%)
CIE-LABlab(31.93, 52.73, -31.80)
CIE-LCHlch(31.93, 61.58, 328.90°)
OKLaboklab(43.6% 0.1486 -0.088)
OKLCHoklch(43.6% 0.173 329.4)
XYZxyz(13.2584, 7.0532, 20.3977)
Luminance0.0705 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#811D7E #1D8120
analogous
#521D81 #811D7E #811D4C
triadic
#811D7E #7E811D #1D7E81
tetradic
#811D7E #81521D #1D8120 #1D4C81
square
#811D7E #81521D #1D8120 #1D4C81
split-complementary
#811D7E #4C811D #1D8152
monochromatic
#1D071C #4F124D #811D7E #B328AF #D544D0

Accessibility & contrast

On white

8.71
#811D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#811D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##811D7E#FFFFFF#000000##FFFFFF
##811D7E1.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)
#0C4381
Deuteranopia (green-blind)
#3B507C
Tritanopia (blue-blind)
#862C4C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #811d7e;
/* rgb */ color: rgb(129, 29, 126);
/* oklch */ color: oklch(43.6% 0.173 329.4);
Tailwind
colors: {
  custom: {
    50: '#a965a4',
    500: '#811d7e',
    950: '#000000',
  },
}
SCSS
$custom: #811d7e;
$custom-light: #a965a4;
$custom-dark: #000000;
JSON
{
  "hex": "#811d7e",
  "rgb": {
    "r": 129,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 301.8,
    "s": 63.291,
    "l": 30.98
  },
  "oklch": {
    "l": 0.43603,
    "c": 0.17269,
    "h": 329.4
  },
  "luminance": 0.07052
}

Semantic roles & 50–950 ramp

primary
#811D7E
secondary
#46B449
accent
#E64641
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #811D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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