#81218C#81218C

#81218C is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.180 H 323.4°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#81218C
RGBrgb(129, 33, 140)
HSLhsl(294, 62%, 34%)
HSVhsv(294, 76%, 55%)
CMYKcmyk(7.9%, 76.4%, 0%, 45.1%)
CIE-LABlab(33.24, 53.87, -38.42)
CIE-LCHlch(33.24, 66.17, 324.50°)
OKLaboklab(44.81% 0.1444 -0.1073)
OKLCHoklch(44.81% 0.18 323.4)
XYZxyz(14.3303, 7.6492, 25.5275)
Luminance0.0765 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81218C #2C8C21
analogous
#4C218C #81218C #8C2162
triadic
#81218C #8C8121 #218C81
tetradic
#81218C #8C4C21 #2C8C21 #21628C
square
#81218C #8C4C21 #2C8C21 #21628C
split-complementary
#81218C #628C21 #218C4C
monochromatic
#260A29 #53155A #81218C #AF2DBE #C851D6

Accessibility & contrast

On white

8.30
#81218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#81218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81218C
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81218C#FFFFFF#000000##FFFFFF
##81218C1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #81218c;
/* rgb */ color: rgb(129, 33, 140);
/* oklch */ color: oklch(44.8% 0.180 323.4);
Tailwind
colors: {
  custom: {
    50: '#a967ae',
    500: '#81218c',
    950: '#000000',
  },
}
SCSS
$custom: #81218c;
$custom-light: #a967ae;
$custom-dark: #000000;
JSON
{
  "hex": "#81218c",
  "rgb": {
    "r": 129,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 293.832,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44814,
    "c": 0.17991,
    "h": 323.4
  },
  "luminance": 0.07648
}

Semantic roles & 50–950 ramp

primary
#81218C
secondary
#5AB94F
accent
#E54354
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #81218C

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

Preview Lab → · Contrast checker → · Palette generator →

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