#81218A#81218A

#81218A is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.7% C 0.178 H 324.2°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#81218A
RGBrgb(129, 33, 138)
HSLhsl(295, 61%, 34%)
HSVhsv(295, 76%, 54%)
CMYKcmyk(6.5%, 76.1%, 0%, 45.9%)
CIE-LABlab(33.12, 53.51, -37.39)
CIE-LCHlch(33.12, 65.28, 325.05°)
OKLaboklab(44.68% 0.1446 -0.1042)
OKLCHoklch(44.68% 0.178 324.2)
XYZxyz(14.1842, 7.5907, 24.7579)
Luminance0.0759 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81218A #2A8A21
analogous
#4C218A #81218A #8A215E
triadic
#81218A #8A8121 #218A81
tetradic
#81218A #8A4C21 #2A8A21 #215E8A
square
#81218A #8A4C21 #2A8A21 #215E8A
split-complementary
#81218A #5E8A21 #218A4C
monochromatic
#250927 #531559 #81218A #AF2DBB #CA50D5

Accessibility & contrast

On white

8.34
#81218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#81218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81218A
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81218A#FFFFFF#000000##FFFFFF
##81218A1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478D
Deuteranopia (green-blind)
#355288
Tritanopia (blue-blind)
#843454
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #81218a;
/* rgb */ color: rgb(129, 33, 138);
/* oklch */ color: oklch(44.7% 0.178 324.2);
Tailwind
colors: {
  custom: {
    50: '#a967ad',
    500: '#81218a',
    950: '#000000',
  },
}
SCSS
$custom: #81218a;
$custom-light: #a967ad;
$custom-dark: #000000;
JSON
{
  "hex": "#81218a",
  "rgb": {
    "r": 129,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 294.857,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44684,
    "c": 0.17822,
    "h": 324.2
  },
  "luminance": 0.0759
}

Semantic roles & 50–950 ramp

primary
#81218A
secondary
#57B94E
accent
#E54351
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #81218A

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

Preview Lab → · Contrast checker → · Palette generator →

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