#81187A#81187A

#81187A is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.0% C 0.175 H 331.2°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#81187A
RGBrgb(129, 24, 122)
HSLhsl(304, 69%, 30%)
HSVhsv(304, 81%, 51%)
CMYKcmyk(0%, 81.4%, 5.4%, 49.4%)
CIE-LABlab(31.18, 53.56, -30.48)
CIE-LCHlch(31.18, 61.62, 330.36°)
OKLaboklab(42.99% 0.1529 -0.0841)
OKLCHoklch(42.99% 0.175 331.2)
XYZxyz(12.8927, 6.7266, 19.0279)
Luminance0.0673 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81187A #18811F
analogous
#531881 #81187A #811846
triadic
#81187A #7A8118 #187A81
tetradic
#81187A #815318 #18811F #184681
square
#81187A #815318 #18811F #184681
split-complementary
#81187A #468118 #188153
monochromatic
#1A0518 #4D0E49 #81187A #B522AB #DA39CF

Accessibility & contrast

On white

8.95
#81187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#81187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81187A
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81187A#FFFFFF#000000##FFFFFF
##81187A1.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)
#0A407D
Deuteranopia (green-blind)
#3B4E78
Tritanopia (blue-blind)
#862749
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #81187a;
/* rgb */ color: rgb(129, 24, 122);
/* oklch */ color: oklch(43.0% 0.175 331.2);
Tailwind
colors: {
  custom: {
    50: '#a963a1',
    500: '#81187a',
    950: '#000000',
  },
}
SCSS
$custom: #81187a;
$custom-light: #a963a1;
$custom-dark: #000000;
JSON
{
  "hex": "#81187a",
  "rgb": {
    "r": 129,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 304,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.42992,
    "c": 0.17451,
    "h": 331.2
  },
  "luminance": 0.06726
}

Semantic roles & 50–950 ramp

primary
#81187A
secondary
#40B547
accent
#EB483C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #81187A

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

Preview Lab → · Contrast checker → · Palette generator →

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