#81237C#81237C

#81237C is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.0% C 0.164 H 330.2°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#81237C
RGBrgb(129, 35, 124)
HSLhsl(303, 57%, 32%)
HSVhsv(303, 73%, 51%)
CMYKcmyk(0%, 72.9%, 3.9%, 49.4%)
CIE-LABlab(32.54, 50.32, -29.58)
CIE-LCHlch(32.54, 58.38, 329.55°)
OKLaboklab(44% 0.1427 -0.0816)
OKLCHoklch(44% 0.164 330.2)
XYZxyz(13.2923, 7.3254, 19.7787)
Luminance0.0732 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81237C #238128
analogous
#572381 #81237C #81234D
triadic
#81237C #7C8123 #237C81
tetradic
#81237C #815723 #238128 #234D81
square
#81237C #815723 #238128 #234D81
split-complementary
#81237C #4D8123 #238157
monochromatic
#21091F #51164E #81237C #B130AA #CF4FC8

Accessibility & contrast

On white

8.52
#81237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#81237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81237C
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81237C#FFFFFF#000000##FFFFFF
##81237C1.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19447E
Deuteranopia (green-blind)
#3F517A
Tritanopia (blue-blind)
#862F4D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #81237c;
/* rgb */ color: rgb(129, 35, 124);
/* oklch */ color: oklch(44.0% 0.164 330.2);
Tailwind
colors: {
  custom: {
    50: '#a968a2',
    500: '#81237c',
    950: '#000000',
  },
}
SCSS
$custom: #81237c;
$custom-light: #a968a2;
$custom-dark: #000000;
JSON
{
  "hex": "#81237c",
  "rgb": {
    "r": 129,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 303.191,
    "s": 57.317,
    "l": 32.157
  },
  "oklch": {
    "l": 0.44003,
    "c": 0.16434,
    "h": 330.2
  },
  "luminance": 0.07324
}

Semantic roles & 50–950 ramp

primary
#81237C
secondary
#4DB352
accent
#E14F47
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #81237C

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

Preview Lab → · Contrast checker → · Palette generator →

#81237C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva