#81218F#81218F

#81218F is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.182 H 322.2°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#81218F
RGBrgb(129, 33, 143)
HSLhsl(292, 63%, 35%)
HSVhsv(292, 77%, 56%)
CMYKcmyk(9.8%, 76.9%, 0%, 43.9%)
CIE-LABlab(33.43, 54.43, -39.97)
CIE-LCHlch(33.43, 67.52, 323.71°)
OKLaboklab(45.01% 0.1442 -0.1118)
OKLCHoklch(45.01% 0.182 322.2)
XYZxyz(14.5545, 7.7389, 26.7084)
Luminance0.0774 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81218F #2F8F21
analogous
#4A218F #81218F #8F2166
triadic
#81218F #8F8121 #218F81
tetradic
#81218F #8F4A21 #2F8F21 #21668F
square
#81218F #8F4A21 #2F8F21 #21668F
split-complementary
#81218F #668F21 #218F4A
monochromatic
#270A2C #54165D #81218F #AE2CC1 #C653D7

Accessibility & contrast

On white

8.24
#81218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#81218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81218F
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81218F#FFFFFF#000000##FFFFFF
##81218F1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#31528C
Tritanopia (blue-blind)
#833657
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #81218f;
/* rgb */ color: rgb(129, 33, 143);
/* oklch */ color: oklch(45.0% 0.182 322.2);
Tailwind
colors: {
  custom: {
    50: '#a968b0',
    500: '#81218f',
    950: '#000000',
  },
}
SCSS
$custom: #81218f;
$custom-light: #a968b0;
$custom-dark: #000000;
JSON
{
  "hex": "#81218f",
  "rgb": {
    "r": 129,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 292.364,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45012,
    "c": 0.18245,
    "h": 322.2
  },
  "luminance": 0.07738
}

Semantic roles & 50–950 ramp

primary
#81218F
secondary
#5EBB51
accent
#E64257
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #81218F

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

Preview Lab → · Contrast checker → · Palette generator →

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