#81157A#81157A

#81157A is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.8% C 0.177 H 331.2°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#81157A
RGBrgb(129, 21, 122)
HSLhsl(304, 72%, 29%)
HSVhsv(304, 84%, 51%)
CMYKcmyk(0%, 83.7%, 5.4%, 49.4%)
CIE-LABlab(30.90, 54.36, -30.91)
CIE-LCHlch(30.90, 62.53, 330.37°)
OKLaboklab(42.8% 0.1552 -0.0853)
OKLCHoklch(42.8% 0.177 331.2)
XYZxyz(12.8343, 6.6097, 19.0084)
Luminance0.0661 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81157A #15811C
analogous
#521581 #81157A #811544
triadic
#81157A #7A8115 #157A81
tetradic
#81157A #815215 #15811C #154481
square
#81157A #815215 #15811C #154481
split-complementary
#81157A #448115 #158152
monochromatic
#1A0419 #4C0C48 #81157A #B61EAC #DE33D3

Accessibility & contrast

On white

9.04
#81157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#81157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81157A
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81157A#FFFFFF#000000##FFFFFF
##81157A1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053F7D
Deuteranopia (green-blind)
#3A4E78
Tritanopia (blue-blind)
#862548
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #81157a;
/* rgb */ color: rgb(129, 21, 122);
/* oklch */ color: oklch(42.8% 0.177 331.2);
Tailwind
colors: {
  custom: {
    50: '#a962a1',
    500: '#81157a',
    950: '#000000',
  },
}
SCSS
$custom: #81157a;
$custom-light: #a962a1;
$custom-dark: #000000;
JSON
{
  "hex": "#81157a",
  "rgb": {
    "r": 129,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 303.889,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42796,
    "c": 0.17712,
    "h": 331.2
  },
  "luminance": 0.06609
}

Semantic roles & 50–950 ramp

primary
#81157A
secondary
#3CB644
accent
#EF4539
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #81157A

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

Preview Lab → · Contrast checker → · Palette generator →

#81157A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva