#81228B#81228B

#81228B is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.8% C 0.178 H 323.8°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#81228B
RGBrgb(129, 34, 139)
HSLhsl(294, 61%, 34%)
HSVhsv(294, 76%, 55%)
CMYKcmyk(7.2%, 75.5%, 0%, 45.5%)
CIE-LABlab(33.30, 53.34, -37.71)
CIE-LCHlch(33.30, 65.33, 324.74°)
OKLaboklab(44.84% 0.1435 -0.1052)
OKLCHoklch(44.84% 0.178 323.8)
XYZxyz(14.2851, 7.6761, 25.1503)
Luminance0.0767 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81228B #2C8B22
analogous
#4D228B #81228B #8B2261
triadic
#81228B #8B8122 #228B81
tetradic
#81228B #8B4D22 #2C8B22 #22618B
square
#81228B #8B4D22 #2C8B22 #22618B
split-complementary
#81228B #618B22 #228B4D
monochromatic
#260A29 #53165A #81228B #AF2EBC #C853D5

Accessibility & contrast

On white

8.28
#81228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#81228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81228B
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81228B#FFFFFF#000000##FFFFFF
##81228B1.008.282.538.28
#FFFFFF8.281.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #81228b;
/* rgb */ color: rgb(129, 34, 139);
/* oklch */ color: oklch(44.8% 0.178 323.8);
Tailwind
colors: {
  custom: {
    50: '#a968ad',
    500: '#81228b',
    950: '#000000',
  },
}
SCSS
$custom: #81228b;
$custom-light: #a968ad;
$custom-dark: #000000;
JSON
{
  "hex": "#81228b",
  "rgb": {
    "r": 129,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 294.286,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44835,
    "c": 0.17797,
    "h": 323.8
  },
  "luminance": 0.07675
}

Semantic roles & 50–950 ramp

primary
#81228B
secondary
#5AB850
accent
#E44453
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #81228B

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

Preview Lab → · Contrast checker → · Palette generator →

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