#81228F#81228F

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

Color values

HEX#81228F
RGBrgb(129, 34, 143)
HSLhsl(292, 62%, 35%)
HSVhsv(292, 76%, 56%)
CMYKcmyk(9.8%, 76.2%, 0%, 43.9%)
CIE-LABlab(33.55, 54.08, -39.78)
CIE-LCHlch(33.55, 67.13, 323.67°)
OKLaboklab(45.1% 0.1433 -0.1112)
OKLCHoklch(45.1% 0.181 322.2)
XYZxyz(14.5827, 7.7952, 26.7178)
Luminance0.0779 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81228F #308F22
analogous
#4B228F #81228F #8F2266
triadic
#81228F #8F8122 #228F81
tetradic
#81228F #8F4B22 #308F22 #22668F
square
#81228F #8F4B22 #308F22 #22668F
split-complementary
#81228F #668F22 #228F4B
monochromatic
#280A2C #54165E #81228F #AE2EC0 #C655D7

Accessibility & contrast

On white

8.21
#81228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#81228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81228F
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81228F#FFFFFF#000000##FFFFFF
##81228F1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#32528C
Tritanopia (blue-blind)
#833757
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #81228f;
/* rgb */ color: rgb(129, 34, 143);
/* oklch */ color: oklch(45.1% 0.181 322.2);
Tailwind
colors: {
  custom: {
    50: '#a968b0',
    500: '#81228f',
    950: '#000000',
  },
}
SCSS
$custom: #81228f;
$custom-light: #a968b0;
$custom-dark: #000000;
JSON
{
  "hex": "#81228f",
  "rgb": {
    "r": 129,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 292.294,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.45097,
    "c": 0.18138,
    "h": 322.2
  },
  "luminance": 0.07794
}

Semantic roles & 50–950 ramp

primary
#81228F
secondary
#60BA52
accent
#E54358
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #81228F

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

Preview Lab → · Contrast checker → · Palette generator →

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