#81218E#81218E

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

Color values

HEX#81218E
RGBrgb(129, 33, 142)
HSLhsl(293, 62%, 34%)
HSVhsv(293, 77%, 56%)
CMYKcmyk(9.2%, 76.8%, 0%, 44.3%)
CIE-LABlab(33.37, 54.24, -39.45)
CIE-LCHlch(33.37, 67.07, 323.97°)
OKLaboklab(44.95% 0.1443 -0.1103)
OKLCHoklch(44.95% 0.182 322.6)
XYZxyz(14.4791, 7.7087, 26.3112)
Luminance0.0771 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81218E #2E8E21
analogous
#4B218E #81218E #8E2165
triadic
#81218E #8E8121 #218E81
tetradic
#81218E #8E4B21 #2E8E21 #21658E
square
#81218E #8E4B21 #2E8E21 #21658E
split-complementary
#81218E #658E21 #218E4B
monochromatic
#270A2B #54155C #81218E #AE2DC0 #C752D7

Accessibility & contrast

On white

8.26
#81218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #81218E
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81218E#FFFFFF#000000##FFFFFF
##81218E1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#32528B
Tritanopia (blue-blind)
#833656
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #81218e;
/* rgb */ color: rgb(129, 33, 142);
/* oklch */ color: oklch(44.9% 0.182 322.6);
Tailwind
colors: {
  custom: {
    50: '#a968b0',
    500: '#81218e',
    950: '#000000',
  },
}
SCSS
$custom: #81218e;
$custom-light: #a968b0;
$custom-dark: #000000;
JSON
{
  "hex": "#81218e",
  "rgb": {
    "r": 129,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 292.844,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44945,
    "c": 0.1816,
    "h": 322.6
  },
  "luminance": 0.07708
}

Semantic roles & 50–950 ramp

primary
#81218E
secondary
#5DBA50
accent
#E54256
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #81218E

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

Preview Lab → · Contrast checker → · Palette generator →

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