#81228E#81228E

#81228E is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.181 H 322.6°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#81228E
RGBrgb(129, 34, 142)
HSLhsl(293, 61%, 35%)
HSVhsv(293, 76%, 56%)
CMYKcmyk(9.2%, 76.1%, 0%, 44.3%)
CIE-LABlab(33.49, 53.90, -39.26)
CIE-LCHlch(33.49, 66.68, 323.93°)
OKLaboklab(45.03% 0.1434 -0.1097)
OKLCHoklch(45.03% 0.181 322.6)
XYZxyz(14.5073, 7.7650, 26.3206)
Luminance0.0776 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81228E #2F8E22
analogous
#4B228E #81228E #8E2265
triadic
#81228E #8E8122 #228E81
tetradic
#81228E #8E4B22 #2F8E22 #22658E
square
#81228E #8E4B22 #2F8E22 #22658E
split-complementary
#81228E #658E22 #228E4B
monochromatic
#270A2B #54165D #81228E #AE2EBF #C654D6

Accessibility & contrast

On white

8.23
#81228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #81228E
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81228E#FFFFFF#000000##FFFFFF
##81228E1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#33528B
Tritanopia (blue-blind)
#833757
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #81228e;
/* rgb */ color: rgb(129, 34, 142);
/* oklch */ color: oklch(45.0% 0.181 322.6);
Tailwind
colors: {
  custom: {
    50: '#a968b0',
    500: '#81228e',
    950: '#000000',
  },
}
SCSS
$custom: #81228e;
$custom-light: #a968b0;
$custom-dark: #000000;
JSON
{
  "hex": "#81228e",
  "rgb": {
    "r": 129,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 292.778,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45031,
    "c": 0.18053,
    "h": 322.6
  },
  "luminance": 0.07764
}

Semantic roles & 50–950 ramp

primary
#81228E
secondary
#5EBA52
accent
#E44357
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #81228E

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

Preview Lab → · Contrast checker → · Palette generator →

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