#81187E#81187E

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

Color values

HEX#81187E
RGBrgb(129, 24, 126)
HSLhsl(302, 69%, 30%)
HSVhsv(302, 81%, 51%)
CMYKcmyk(0%, 81.4%, 2.3%, 49.4%)
CIE-LABlab(31.41, 54.21, -32.62)
CIE-LCHlch(31.41, 63.27, 328.96°)
OKLaboklab(43.24% 0.1529 -0.0903)
OKLCHoklch(43.24% 0.178 329.4)
XYZxyz(13.1457, 6.8278, 20.3601)
Luminance0.0683 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81187E #18811B
analogous
#4F1881 #81187E #81184A
triadic
#81187E #7E8118 #187E81
tetradic
#81187E #814F18 #18811B #184A81
square
#81187E #814F18 #18811B #184A81
split-complementary
#81187E #4A8118 #18814F
monochromatic
#1A0519 #4D0E4C #81187E #B522B0 #DA39D6

Accessibility & contrast

On white

8.88
#81187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #81187E
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81187E#FFFFFF#000000##FFFFFF
##81187E1.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014181
Deuteranopia (green-blind)
#394F7C
Tritanopia (blue-blind)
#86294B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #81187e;
/* rgb */ color: rgb(129, 24, 126);
/* oklch */ color: oklch(43.2% 0.178 329.4);
Tailwind
colors: {
  custom: {
    50: '#a963a4',
    500: '#81187e',
    950: '#000000',
  },
}
SCSS
$custom: #81187e;
$custom-light: #a963a4;
$custom-dark: #000000;
JSON
{
  "hex": "#81187e",
  "rgb": {
    "r": 129,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 301.714,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.43235,
    "c": 0.17754,
    "h": 329.4
  },
  "luminance": 0.06827
}

Semantic roles & 50–950 ramp

primary
#81187E
secondary
#40B543
accent
#EB413C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #81187E

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

Preview Lab → · Contrast checker → · Palette generator →

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