#81228A#81228A

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

Color values

HEX#81228A
RGBrgb(129, 34, 138)
HSLhsl(295, 60%, 34%)
HSVhsv(295, 75%, 54%)
CMYKcmyk(6.5%, 75.4%, 0%, 45.9%)
CIE-LABlab(33.24, 53.16, -37.20)
CIE-LCHlch(33.24, 64.88, 325.02°)
OKLaboklab(44.77% 0.1436 -0.1037)
OKLCHoklch(44.77% 0.177 324.2)
XYZxyz(14.2123, 7.6470, 24.7673)
Luminance0.0765 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81228A #2B8A22
analogous
#4D228A #81228A #8A225F
triadic
#81228A #8A8122 #228A81
tetradic
#81228A #8A4D22 #2B8A22 #225F8A
square
#81228A #8A4D22 #2B8A22 #225F8A
split-complementary
#81228A #5F8A22 #228A4D
monochromatic
#250A28 #531659 #81228A #AF2EBB #C952D4

Accessibility & contrast

On white

8.30
#81228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #81228A
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81228A#FFFFFF#000000##FFFFFF
##81228A1.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)
#00478D
Deuteranopia (green-blind)
#365288
Tritanopia (blue-blind)
#843554
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #81228a;
/* rgb */ color: rgb(129, 34, 138);
/* oklch */ color: oklch(44.8% 0.177 324.2);
Tailwind
colors: {
  custom: {
    50: '#a968ad',
    500: '#81228a',
    950: '#000000',
  },
}
SCSS
$custom: #81228a;
$custom-light: #a968ad;
$custom-dark: #000000;
JSON
{
  "hex": "#81228a",
  "rgb": {
    "r": 129,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 294.808,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44771,
    "c": 0.17712,
    "h": 324.2
  },
  "luminance": 0.07646
}

Semantic roles & 50–950 ramp

primary
#81228A
secondary
#59B850
accent
#E44452
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #81228A

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

Preview Lab → · Contrast checker → · Palette generator →

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