#81187F#81187F

#81187F is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.3% C 0.178 H 329.0°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#81187F
RGBrgb(129, 24, 127)
HSLhsl(301, 69%, 30%)
HSVhsv(301, 81%, 51%)
CMYKcmyk(0%, 81.4%, 1.6%, 49.4%)
CIE-LABlab(31.47, 54.38, -33.16)
CIE-LCHlch(31.47, 63.69, 328.63°)
OKLaboklab(43.3% 0.1528 -0.0919)
OKLCHoklch(43.3% 0.178 329)
XYZxyz(13.2105, 6.8537, 20.7017)
Luminance0.0685 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81187F #18811A
analogous
#4F1881 #81187F #81184A
triadic
#81187F #7F8118 #187F81
tetradic
#81187F #814F18 #18811A #184A81
square
#81187F #814F18 #18811A #184A81
split-complementary
#81187F #4A8118 #18814F
monochromatic
#1A0519 #4D0E4C #81187F #B522B2 #DA39D7

Accessibility & contrast

On white

8.86
#81187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#81187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81187F
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81187F#FFFFFF#000000##FFFFFF
##81187F1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004182
Deuteranopia (green-blind)
#384F7D
Tritanopia (blue-blind)
#86294C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #81187f;
/* rgb */ color: rgb(129, 24, 127);
/* oklch */ color: oklch(43.3% 0.178 329.0);
Tailwind
colors: {
  custom: {
    50: '#a963a4',
    500: '#81187f',
    950: '#000000',
  },
}
SCSS
$custom: #81187f;
$custom-light: #a963a4;
$custom-dark: #000000;
JSON
{
  "hex": "#81187f",
  "rgb": {
    "r": 129,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 301.143,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.43297,
    "c": 0.17831,
    "h": 329
  },
  "luminance": 0.06853
}

Semantic roles & 50–950 ramp

primary
#81187F
secondary
#40B542
accent
#EB403C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #81187F

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

Preview Lab → · Contrast checker → · Palette generator →

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