#81228D#81228D

#81228D is a dark, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.180 H 323.0°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#81228D
RGBrgb(129, 34, 141)
HSLhsl(293, 61%, 34%)
HSVhsv(293, 76%, 55%)
CMYKcmyk(8.5%, 75.9%, 0%, 44.7%)
CIE-LABlab(33.42, 53.71, -38.75)
CIE-LCHlch(33.42, 66.23, 324.19°)
OKLaboklab(44.97% 0.1434 -0.1082)
OKLCHoklch(44.97% 0.18 323)
XYZxyz(14.4325, 7.7351, 25.9270)
Luminance0.0773 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81228D #2E8D22
analogous
#4C228D #81228D #8D2264
triadic
#81228D #8D8122 #228D81
tetradic
#81228D #8D4C22 #2E8D22 #22648D
square
#81228D #8D4C22 #2E8D22 #22648D
split-complementary
#81228D #648D22 #228D4C
monochromatic
#270A2A #54165C #81228D #AE2EBE #C754D6

Accessibility & contrast

On white

8.25
#81228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#81228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81228D
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81228D#FFFFFF#000000##FFFFFF
##81228D1.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#33528A
Tritanopia (blue-blind)
#833656
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #81228d;
/* rgb */ color: rgb(129, 34, 141);
/* oklch */ color: oklch(45.0% 0.180 323.0);
Tailwind
colors: {
  custom: {
    50: '#a968af',
    500: '#81228d',
    950: '#000000',
  },
}
SCSS
$custom: #81228d;
$custom-light: #a968af;
$custom-dark: #000000;
JSON
{
  "hex": "#81228d",
  "rgb": {
    "r": 129,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 293.271,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44965,
    "c": 0.17967,
    "h": 323
  },
  "luminance": 0.07734
}

Semantic roles & 50–950 ramp

primary
#81228D
secondary
#5DB951
accent
#E44456
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #81228D

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

Preview Lab → · Contrast checker → · Palette generator →

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