#81229D#81229D

#81229D is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.1% C 0.194 H 317.0°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#81229D
RGBrgb(129, 34, 157)
HSLhsl(286, 64%, 37%)
HSVhsv(286, 78%, 62%)
CMYKcmyk(17.8%, 78.3%, 0%, 38.4%)
CIE-LABlab(34.49, 56.77, -46.82)
CIE-LCHlch(34.49, 73.59, 320.48°)
OKLaboklab(46.06% 0.1417 -0.1319)
OKLCHoklch(46.06% 0.194 317)
XYZxyz(15.7102, 8.2462, 32.6559)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81229D #3E9D22
analogous
#43229D #81229D #9D227C
triadic
#81229D #9D8122 #229D81
tetradic
#81229D #9D4322 #3E9D22 #227C9D
square
#81229D #9D4322 #3E9D22 #227C9D
split-complementary
#81229D #7C9D22 #229D43
monochromatic
#2E0C38 #58176B #81229D #AA2DCF #BF5DDC

Accessibility & contrast

On white

7.93
#81229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#81229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81229D
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81229D#FFFFFF#000000##FFFFFF
##81229D1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA0
Deuteranopia (green-blind)
#24549A
Tritanopia (blue-blind)
#803E5F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #81229d;
/* rgb */ color: rgb(129, 34, 157);
/* oklch */ color: oklch(46.1% 0.194 317.0);
Tailwind
colors: {
  custom: {
    50: '#aa69bb',
    500: '#81229d',
    950: '#000000',
  },
}
SCSS
$custom: #81229d;
$custom-light: #aa69bb;
$custom-dark: #000000;
JSON
{
  "hex": "#81229d",
  "rgb": {
    "r": 129,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 286.341,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.4606,
    "c": 0.19354,
    "h": 317
  },
  "luminance": 0.08246
}

Semantic roles & 50–950 ramp

primary
#81229D
secondary
#72C15A
accent
#E74066
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #81229D

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

Preview Lab → · Contrast checker → · Palette generator →

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