#81218B#81218B

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

Color values

HEX#81218B
RGBrgb(129, 33, 139)
HSLhsl(294, 62%, 34%)
HSVhsv(294, 76%, 55%)
CMYKcmyk(7.2%, 76.3%, 0%, 45.5%)
CIE-LABlab(33.18, 53.69, -37.91)
CIE-LCHlch(33.18, 65.72, 324.78°)
OKLaboklab(44.75% 0.1445 -0.1058)
OKLCHoklch(44.75% 0.179 323.8)
XYZxyz(14.2569, 7.6198, 25.1409)
Luminance0.0762 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81218B #2B8B21
analogous
#4C218B #81218B #8B2160
triadic
#81218B #8B8121 #218B81
tetradic
#81218B #8B4C21 #2B8B21 #21608B
square
#81218B #8B4C21 #2B8B21 #21608B
split-complementary
#81218B #608B21 #218B4C
monochromatic
#250A28 #53155A #81218B #AF2DBC #C951D6

Accessibility & contrast

On white

8.32
#81218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #81218B
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81218B#FFFFFF#000000##FFFFFF
##81218B1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#345289
Tritanopia (blue-blind)
#833555
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #81218b;
/* rgb */ color: rgb(129, 33, 139);
/* oklch */ color: oklch(44.7% 0.179 323.8);
Tailwind
colors: {
  custom: {
    50: '#a967ad',
    500: '#81218b',
    950: '#000000',
  },
}
SCSS
$custom: #81218b;
$custom-light: #a967ad;
$custom-dark: #000000;
JSON
{
  "hex": "#81218b",
  "rgb": {
    "r": 129,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 294.34,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44749,
    "c": 0.17906,
    "h": 323.8
  },
  "luminance": 0.07619
}

Semantic roles & 50–950 ramp

primary
#81218B
secondary
#59B94F
accent
#E54352
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #81218B

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

Preview Lab → · Contrast checker → · Palette generator →

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