#81237F#81237F

#81237F is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.2% C 0.167 H 328.9°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#81237F
RGBrgb(129, 35, 127)
HSLhsl(301, 57%, 32%)
HSVhsv(301, 73%, 51%)
CMYKcmyk(0%, 72.9%, 1.6%, 49.4%)
CIE-LABlab(32.71, 50.84, -31.20)
CIE-LCHlch(32.71, 59.65, 328.47°)
OKLaboklab(44.18% 0.1427 -0.0862)
OKLCHoklch(44.18% 0.167 328.9)
XYZxyz(13.4849, 7.4025, 20.7931)
Luminance0.0740 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81237F #238125
analogous
#542381 #81237F #812350
triadic
#81237F #7F8123 #237F81
tetradic
#81237F #815423 #238125 #235081
square
#81237F #815423 #238125 #235081
split-complementary
#81237F #508123 #238154
monochromatic
#210920 #511650 #81237F #B130AE #CF4FCD

Accessibility & contrast

On white

8.47
#81237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#81237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81237F
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81237F#FFFFFF#000000##FFFFFF
##81237F1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154582
Deuteranopia (green-blind)
#3D517D
Tritanopia (blue-blind)
#85304E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #81237f;
/* rgb */ color: rgb(129, 35, 127);
/* oklch */ color: oklch(44.2% 0.167 328.9);
Tailwind
colors: {
  custom: {
    50: '#a968a4',
    500: '#81237f',
    950: '#000000',
  },
}
SCSS
$custom: #81237f;
$custom-light: #a968a4;
$custom-dark: #000000;
JSON
{
  "hex": "#81237f",
  "rgb": {
    "r": 129,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 301.277,
    "s": 57.317,
    "l": 32.157
  },
  "oklch": {
    "l": 0.44179,
    "c": 0.16678,
    "h": 328.9
  },
  "luminance": 0.07401
}

Semantic roles & 50–950 ramp

primary
#81237F
secondary
#4DB34F
accent
#E14A47
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #81237F

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

Preview Lab → · Contrast checker → · Palette generator →

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