#81157F#81157F

#81157F is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.1% C 0.181 H 329.0°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#81157F
RGBrgb(129, 21, 127)
HSLhsl(301, 72%, 29%)
HSVhsv(301, 84%, 51%)
CMYKcmyk(0%, 83.7%, 1.6%, 49.4%)
CIE-LABlab(31.20, 55.17, -33.59)
CIE-LCHlch(31.20, 64.59, 328.67°)
OKLaboklab(43.1% 0.1551 -0.0931)
OKLCHoklch(43.1% 0.181 329)
XYZxyz(13.1521, 6.7368, 20.6822)
Luminance0.0674 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81157F #158117
analogous
#4D1581 #81157F #811549
triadic
#81157F #7F8115 #157F81
tetradic
#81157F #814D15 #158117 #154981
square
#81157F #814D15 #158117 #154981
split-complementary
#81157F #498115 #15814D
monochromatic
#1A041A #4C0C4B #81157F #B61EB3 #DE33DB

Accessibility & contrast

On white

8.95
#81157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#81157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81157F
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81157F#FFFFFF#000000##FFFFFF
##81157F1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004182
Deuteranopia (green-blind)
#374E7D
Tritanopia (blue-blind)
#86284B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #81157f;
/* rgb */ color: rgb(129, 21, 127);
/* oklch */ color: oklch(43.1% 0.181 329.0);
Tailwind
colors: {
  custom: {
    50: '#a963a4',
    500: '#81157f',
    950: '#000000',
  },
}
SCSS
$custom: #81157f;
$custom-light: #a963a4;
$custom-dark: #000000;
JSON
{
  "hex": "#81157f",
  "rgb": {
    "r": 129,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 301.111,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.43104,
    "c": 0.18087,
    "h": 329
  },
  "luminance": 0.06736
}

Semantic roles & 50–950 ramp

primary
#81157F
secondary
#3CB63E
accent
#EF3C39
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #81157F

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

Preview Lab → · Contrast checker → · Palette generator →

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