#81157E#81157E

#81157E is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.0% C 0.180 H 329.5°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#81157E
RGBrgb(129, 21, 126)
HSLhsl(302, 72%, 29%)
HSVhsv(302, 84%, 51%)
CMYKcmyk(0%, 83.7%, 2.3%, 49.4%)
CIE-LABlab(31.14, 55.00, -33.06)
CIE-LCHlch(31.14, 64.17, 328.99°)
OKLaboklab(43.04% 0.1551 -0.0916)
OKLCHoklch(43.04% 0.18 329.5)
XYZxyz(13.0872, 6.7109, 20.3407)
Luminance0.0671 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81157E #158118
analogous
#4E1581 #81157E #811548
triadic
#81157E #7E8115 #157E81
tetradic
#81157E #814E15 #158118 #154881
square
#81157E #814E15 #158118 #154881
split-complementary
#81157E #488115 #15814E
monochromatic
#1A041A #4C0C4B #81157E #B61EB1 #DE33D9

Accessibility & contrast

On white

8.97
#81157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#81157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81157E
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81157E#FFFFFF#000000##FFFFFF
##81157E1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#384E7C
Tritanopia (blue-blind)
#86274B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #81157e;
/* rgb */ color: rgb(129, 21, 126);
/* oklch */ color: oklch(43.0% 0.180 329.5);
Tailwind
colors: {
  custom: {
    50: '#a962a4',
    500: '#81157e',
    950: '#000000',
  },
}
SCSS
$custom: #81157e;
$custom-light: #a962a4;
$custom-dark: #000000;
JSON
{
  "hex": "#81157e",
  "rgb": {
    "r": 129,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 301.667,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.43042,
    "c": 0.18012,
    "h": 329.5
  },
  "luminance": 0.0671
}

Semantic roles & 50–950 ramp

primary
#81157E
secondary
#3CB63F
accent
#EF3E39
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #81157E

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

Preview Lab → · Contrast checker → · Palette generator →

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