#81229F#81229F

#81229F is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.2% C 0.195 H 316.4°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#81229F
RGBrgb(129, 34, 159)
HSLhsl(286, 65%, 38%)
HSVhsv(286, 79%, 62%)
CMYKcmyk(18.9%, 78.6%, 0%, 37.6%)
CIE-LABlab(34.63, 57.16, -47.81)
CIE-LCHlch(34.63, 74.52, 320.09°)
OKLaboklab(46.2% 0.1414 -0.1348)
OKLCHoklch(46.2% 0.195 316.4)
XYZxyz(15.8823, 8.3150, 33.5625)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81229F #409F22
analogous
#42229F #81229F #9F227E
triadic
#81229F #9F8122 #229F81
tetradic
#81229F #9F4222 #409F22 #227E9F
square
#81229F #9F4222 #409F22 #227E9F
split-complementary
#81229F #7E9F22 #229F42
monochromatic
#2F0C3A #58176D #81229F #AA2DD1 #BE5FDD

Accessibility & contrast

On white

7.89
#81229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#81229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81229F
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81229F#FFFFFF#000000##FFFFFF
##81229F1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA2
Deuteranopia (green-blind)
#21549C
Tritanopia (blue-blind)
#7F3E60
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #81229f;
/* rgb */ color: rgb(129, 34, 159);
/* oklch */ color: oklch(46.2% 0.195 316.4);
Tailwind
colors: {
  custom: {
    50: '#aa69bc',
    500: '#81229f',
    950: '#000000',
  },
}
SCSS
$custom: #81229f;
$custom-light: #aa69bc;
$custom-dark: #000000;
JSON
{
  "hex": "#81229f",
  "rgb": {
    "r": 129,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 285.6,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.46203,
    "c": 0.1953,
    "h": 316.4
  },
  "luminance": 0.08314
}

Semantic roles & 50–950 ramp

primary
#81229F
secondary
#74C15B
accent
#E84068
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #81229F

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

Preview Lab → · Contrast checker → · Palette generator →

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