#81237D#81237D

#81237D is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.1% C 0.165 H 329.8°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#81237D
RGBrgb(129, 35, 125)
HSLhsl(303, 57%, 32%)
HSVhsv(303, 73%, 51%)
CMYKcmyk(0%, 72.9%, 3.1%, 49.4%)
CIE-LABlab(32.59, 50.49, -30.12)
CIE-LCHlch(32.59, 58.80, 329.18°)
OKLaboklab(44.06% 0.1427 -0.0831)
OKLCHoklch(44.06% 0.165 329.8)
XYZxyz(13.3559, 7.3509, 20.1135)
Luminance0.0735 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81237D #238127
analogous
#562381 #81237D #81234E
triadic
#81237D #7D8123 #237D81
tetradic
#81237D #815623 #238127 #234E81
square
#81237D #815623 #238127 #234E81
split-complementary
#81237D #4E8123 #238156
monochromatic
#210920 #51164E #81237D #B130AC #CF4FCA

Accessibility & contrast

On white

8.50
#81237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#81237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81237D
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81237D#FFFFFF#000000##FFFFFF
##81237D1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184580
Deuteranopia (green-blind)
#3E517B
Tritanopia (blue-blind)
#862F4D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #81237d;
/* rgb */ color: rgb(129, 35, 125);
/* oklch */ color: oklch(44.1% 0.165 329.8);
Tailwind
colors: {
  custom: {
    50: '#a968a3',
    500: '#81237d',
    950: '#000000',
  },
}
SCSS
$custom: #81237d;
$custom-light: #a968a3;
$custom-dark: #000000;
JSON
{
  "hex": "#81237d",
  "rgb": {
    "r": 129,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 302.553,
    "s": 57.317,
    "l": 32.157
  },
  "oklch": {
    "l": 0.44061,
    "c": 0.16514,
    "h": 329.8
  },
  "luminance": 0.0735
}

Semantic roles & 50–950 ramp

primary
#81237D
secondary
#4DB351
accent
#E14E47
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #81237D

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

Preview Lab → · Contrast checker → · Palette generator →

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