#81217C#81217C

#81217C is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.8% C 0.167 H 330.3°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#81217C
RGBrgb(129, 33, 124)
HSLhsl(303, 59%, 32%)
HSVhsv(303, 74%, 51%)
CMYKcmyk(0%, 74.4%, 3.9%, 49.4%)
CIE-LABlab(32.28, 51.04, -29.99)
CIE-LCHlch(32.28, 59.20, 329.57°)
OKLaboklab(43.82% 0.1447 -0.0827)
OKLCHoklch(43.82% 0.167 330.3)
XYZxyz(13.2351, 7.2111, 19.7597)
Luminance0.0721 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81217C #218126
analogous
#562181 #81217C #81214C
triadic
#81217C #7C8121 #217C81
tetradic
#81217C #815621 #218126 #214C81
square
#81217C #815621 #218126 #214C81
split-complementary
#81217C #4C8121 #218156
monochromatic
#20081E #50154D #81217C #B22DAB #D14BCA

Accessibility & contrast

On white

8.60
#81217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#81217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81217C
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81217C#FFFFFF#000000##FFFFFF
##81217C1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16447F
Deuteranopia (green-blind)
#3E517A
Tritanopia (blue-blind)
#862D4C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #81217c;
/* rgb */ color: rgb(129, 33, 124);
/* oklch */ color: oklch(43.8% 0.167 330.3);
Tailwind
colors: {
  custom: {
    50: '#a967a2',
    500: '#81217c',
    950: '#000000',
  },
}
SCSS
$custom: #81217c;
$custom-light: #a967a2;
$custom-dark: #000000;
JSON
{
  "hex": "#81217c",
  "rgb": {
    "r": 129,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 303.125,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.4382,
    "c": 0.1667,
    "h": 330.3
  },
  "luminance": 0.0721
}

Semantic roles & 50–950 ramp

primary
#81217C
secondary
#4AB450
accent
#E24E45
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #81217C

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

Preview Lab → · Contrast checker → · Palette generator →

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