#81157B#81157B

#81157B is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.9% C 0.178 H 330.8°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#81157B
RGBrgb(129, 21, 123)
HSLhsl(303, 72%, 29%)
HSVhsv(303, 84%, 51%)
CMYKcmyk(0%, 83.7%, 4.7%, 49.4%)
CIE-LABlab(30.96, 54.52, -31.45)
CIE-LCHlch(30.96, 62.94, 330.02°)
OKLaboklab(42.86% 0.1552 -0.0869)
OKLCHoklch(42.86% 0.178 330.8)
XYZxyz(12.8966, 6.6346, 19.3364)
Luminance0.0663 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81157B #15811B
analogous
#511581 #81157B #811545
triadic
#81157B #7B8115 #157B81
tetradic
#81157B #815115 #15811B #154581
square
#81157B #815115 #15811B #154581
split-complementary
#81157B #458115 #158151
monochromatic
#1A0419 #4C0C49 #81157B #B61EAD #DE33D4

Accessibility & contrast

On white

9.03
#81157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#81157B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81157B
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81157B#FFFFFF#000000##FFFFFF
##81157B1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02407E
Deuteranopia (green-blind)
#3A4E79
Tritanopia (blue-blind)
#862649
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #81157b;
/* rgb */ color: rgb(129, 21, 123);
/* oklch */ color: oklch(42.9% 0.178 330.8);
Tailwind
colors: {
  custom: {
    50: '#a962a1',
    500: '#81157b',
    950: '#000000',
  },
}
SCSS
$custom: #81157b;
$custom-light: #a962a1;
$custom-dark: #000000;
JSON
{
  "hex": "#81157b",
  "rgb": {
    "r": 129,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 303.333,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42857,
    "c": 0.17787,
    "h": 330.8
  },
  "luminance": 0.06634
}

Semantic roles & 50–950 ramp

primary
#81157B
secondary
#3CB643
accent
#EF4339
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #81157B

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

Preview Lab → · Contrast checker → · Palette generator →

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