#81187C#81187C

#81187C is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.1% C 0.176 H 330.3°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#81187C
RGBrgb(129, 24, 124)
HSLhsl(303, 69%, 30%)
HSVhsv(303, 81%, 51%)
CMYKcmyk(0%, 81.4%, 3.9%, 49.4%)
CIE-LABlab(31.29, 53.88, -31.55)
CIE-LCHlch(31.29, 62.44, 329.65°)
OKLaboklab(43.11% 0.1529 -0.0872)
OKLCHoklch(43.11% 0.176 330.3)
XYZxyz(13.0179, 6.7767, 19.6873)
Luminance0.0678 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81187C #18811D
analogous
#511881 #81187C #811848
triadic
#81187C #7C8118 #187C81
tetradic
#81187C #815118 #18811D #184881
square
#81187C #815118 #18811D #184881
split-complementary
#81187C #488118 #188151
monochromatic
#1A0519 #4D0E4A #81187C #B522AE #DA39D3

Accessibility & contrast

On white

8.92
#81187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#81187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81187C
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81187C#FFFFFF#000000##FFFFFF
##81187C1.008.922.368.92
#FFFFFF8.921.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06417F
Deuteranopia (green-blind)
#3A4F7A
Tritanopia (blue-blind)
#86284A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #81187c;
/* rgb */ color: rgb(129, 24, 124);
/* oklch */ color: oklch(43.1% 0.176 330.3);
Tailwind
colors: {
  custom: {
    50: '#a963a2',
    500: '#81187c',
    950: '#000000',
  },
}
SCSS
$custom: #81187c;
$custom-light: #a963a2;
$custom-dark: #000000;
JSON
{
  "hex": "#81187c",
  "rgb": {
    "r": 129,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 302.857,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.43113,
    "c": 0.17602,
    "h": 330.3
  },
  "luminance": 0.06776
}

Semantic roles & 50–950 ramp

primary
#81187C
secondary
#40B545
accent
#EB453C
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #81187C

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

Preview Lab → · Contrast checker → · Palette generator →

#81187C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva