#81228C#81228C

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

Color values

HEX#81228C
RGBrgb(129, 34, 140)
HSLhsl(294, 61%, 34%)
HSVhsv(294, 76%, 55%)
CMYKcmyk(7.9%, 75.7%, 0%, 45.1%)
CIE-LABlab(33.36, 53.53, -38.23)
CIE-LCHlch(33.36, 65.78, 324.46°)
OKLaboklab(44.9% 0.1435 -0.1067)
OKLCHoklch(44.9% 0.179 323.4)
XYZxyz(14.3585, 7.7055, 25.5369)
Luminance0.0770 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81228C #2D8C22
analogous
#4C228C #81228C #8C2262
triadic
#81228C #8C8122 #228C81
tetradic
#81228C #8C4C22 #2D8C22 #22628C
square
#81228C #8C4C22 #2D8C22 #22628C
split-complementary
#81228C #628C22 #228C4C
monochromatic
#260A2A #54165B #81228C #AE2EBD #C853D5

Accessibility & contrast

On white

8.26
#81228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#81228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81228C
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81228C#FFFFFF#000000##FFFFFF
##81228C1.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)
#00478F
Deuteranopia (green-blind)
#34528A
Tritanopia (blue-blind)
#833655
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #81228c;
/* rgb */ color: rgb(129, 34, 140);
/* oklch */ color: oklch(44.9% 0.179 323.4);
Tailwind
colors: {
  custom: {
    50: '#a968ae',
    500: '#81228c',
    950: '#000000',
  },
}
SCSS
$custom: #81228c;
$custom-light: #a968ae;
$custom-dark: #000000;
JSON
{
  "hex": "#81228c",
  "rgb": {
    "r": 129,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 293.774,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.449,
    "c": 0.17882,
    "h": 323.4
  },
  "luminance": 0.07705
}

Semantic roles & 50–950 ramp

primary
#81228C
secondary
#5CB951
accent
#E44454
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #81228C

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

Preview Lab → · Contrast checker → · Palette generator →

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