#81187D#81187D

#81187D is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.2% C 0.177 H 329.9°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#81187D
RGBrgb(129, 24, 125)
HSLhsl(302, 69%, 30%)
HSVhsv(302, 81%, 51%)
CMYKcmyk(0%, 81.4%, 3.1%, 49.4%)
CIE-LABlab(31.35, 54.05, -32.09)
CIE-LCHlch(31.35, 62.86, 329.30°)
OKLaboklab(43.17% 0.1529 -0.0888)
OKLCHoklch(43.17% 0.177 329.9)
XYZxyz(13.0815, 6.8021, 20.0220)
Luminance0.0680 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81187D #18811C
analogous
#511881 #81187D #811848
triadic
#81187D #7D8118 #187D81
tetradic
#81187D #815118 #18811C #184881
square
#81187D #815118 #18811C #184881
split-complementary
#81187D #488118 #188151
monochromatic
#1A0519 #4D0E4B #81187D #B522AF #DA39D4

Accessibility & contrast

On white

8.90
#81187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #81187D
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81187D#FFFFFF#000000##FFFFFF
##81187D1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034180
Deuteranopia (green-blind)
#3A4F7B
Tritanopia (blue-blind)
#86284B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #81187d;
/* rgb */ color: rgb(129, 24, 125);
/* oklch */ color: oklch(43.2% 0.177 329.9);
Tailwind
colors: {
  custom: {
    50: '#a963a3',
    500: '#81187d',
    950: '#000000',
  },
}
SCSS
$custom: #81187d;
$custom-light: #a963a3;
$custom-dark: #000000;
JSON
{
  "hex": "#81187d",
  "rgb": {
    "r": 129,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 302.286,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.43174,
    "c": 0.17678,
    "h": 329.9
  },
  "luminance": 0.06801
}

Semantic roles & 50–950 ramp

primary
#81187D
secondary
#40B544
accent
#EB433C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #81187D

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

Preview Lab → · Contrast checker → · Palette generator →

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