#81218D#81218D

#81218D is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.9% C 0.181 H 323.0°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#81218D
RGBrgb(129, 33, 141)
HSLhsl(293, 62%, 34%)
HSVhsv(293, 77%, 55%)
CMYKcmyk(8.5%, 76.6%, 0%, 44.7%)
CIE-LABlab(33.30, 54.06, -38.94)
CIE-LCHlch(33.30, 66.62, 324.23°)
OKLaboklab(44.88% 0.1444 -0.1088)
OKLCHoklch(44.88% 0.181 323)
XYZxyz(14.4044, 7.6788, 25.9176)
Luminance0.0768 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81218D #2D8D21
analogous
#4B218D #81218D #8D2163
triadic
#81218D #8D8121 #218D81
tetradic
#81218D #8D4B21 #2D8D21 #21638D
square
#81218D #8D4B21 #2D8D21 #21638D
split-complementary
#81218D #638D21 #218D4B
monochromatic
#260A2A #54155B #81218D #AE2DBF #C852D6

Accessibility & contrast

On white

8.28
#81218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#81218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81218D
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81218D#FFFFFF#000000##FFFFFF
##81218D1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#33528A
Tritanopia (blue-blind)
#833656
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #81218d;
/* rgb */ color: rgb(129, 33, 141);
/* oklch */ color: oklch(44.9% 0.181 323.0);
Tailwind
colors: {
  custom: {
    50: '#a968af',
    500: '#81218d',
    950: '#000000',
  },
}
SCSS
$custom: #81218d;
$custom-light: #a968af;
$custom-dark: #000000;
JSON
{
  "hex": "#81218d",
  "rgb": {
    "r": 129,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 293.333,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.4488,
    "c": 0.18076,
    "h": 323
  },
  "luminance": 0.07678
}

Semantic roles & 50–950 ramp

primary
#81218D
secondary
#5CBA50
accent
#E54355
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #81218D

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

Preview Lab → · Contrast checker → · Palette generator →

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