#81127E#81127E

#81127E is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.9% C 0.182 H 329.5°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#81127E
RGBrgb(129, 18, 126)
HSLhsl(302, 76%, 29%)
HSVhsv(302, 86%, 51%)
CMYKcmyk(0%, 86%, 2.3%, 49.4%)
CIE-LABlab(30.90, 55.71, -33.45)
CIE-LCHlch(30.90, 64.98, 329.02°)
OKLaboklab(42.87% 0.1572 -0.0927)
OKLCHoklch(42.87% 0.182 329.5)
XYZxyz(13.0354, 6.6071, 20.3234)
Luminance0.0661 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81127E #128115
analogous
#4D1281 #81127E #811247
triadic
#81127E #7E8112 #127E81
tetradic
#81127E #814D12 #128115 #124781
square
#81127E #814D12 #128115 #124781
split-complementary
#81127E #478112 #12814D
monochromatic
#1B041A #4B0B4A #81127E #B719B2 #E22CDD

Accessibility & contrast

On white

9.05
#81127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#81127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81127E
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81127E#FFFFFF#000000##FFFFFF
##81127E1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#374E7C
Tritanopia (blue-blind)
#86264A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #81127e;
/* rgb */ color: rgb(129, 18, 126);
/* oklch */ color: oklch(42.9% 0.182 329.5);
Tailwind
colors: {
  custom: {
    50: '#a962a4',
    500: '#81127e',
    950: '#000000',
  },
}
SCSS
$custom: #81127e;
$custom-light: #a962a4;
$custom-dark: #000000;
JSON
{
  "hex": "#81127e",
  "rgb": {
    "r": 129,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 301.622,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.42869,
    "c": 0.18243,
    "h": 329.5
  },
  "luminance": 0.06606
}

Semantic roles & 50–950 ramp

primary
#81127E
secondary
#38B73C
accent
#F23B36
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #81127E

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

Preview Lab → · Contrast checker → · Palette generator →

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