#812A8A#812A8A

#812A8A is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.5% C 0.167 H 323.9°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#812A8A
RGBrgb(129, 42, 138)
HSLhsl(294, 53%, 35%)
HSVhsv(294, 70%, 54%)
CMYKcmyk(6.5%, 69.6%, 0%, 45.9%)
CIE-LABlab(34.31, 50.11, -35.48)
CIE-LCHlch(34.31, 61.40, 324.70°)
OKLaboklab(45.54% 0.1352 -0.0988)
OKLCHoklch(45.54% 0.167 323.9)
XYZxyz(14.4683, 8.1589, 24.8526)
Luminance0.0816 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812A8A #338A2A
analogous
#512A8A #812A8A #8A2A63
triadic
#812A8A #8A812A #2A8A81
tetradic
#812A8A #8A512A #338A2A #2A638A
square
#812A8A #8A512A #338A2A #2A638A
split-complementary
#812A8A #638A2A #2A8A51
monochromatic
#290D2C #551C5B #812A8A #AD38B9 #C460CF

Accessibility & contrast

On white

7.98
#812A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#812A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812A8A
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812A8A#FFFFFF#000000##FFFFFF
##812A8A1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114A8D
Deuteranopia (green-blind)
#3A5488
Tritanopia (blue-blind)
#833A57
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #812a8a;
/* rgb */ color: rgb(129, 42, 138);
/* oklch */ color: oklch(45.5% 0.167 323.9);
Tailwind
colors: {
  custom: {
    50: '#a96bac',
    500: '#812a8a',
    950: '#000000',
  },
}
SCSS
$custom: #812a8a;
$custom-light: #a96bac;
$custom-dark: #000000;
JSON
{
  "hex": "#812a8a",
  "rgb": {
    "r": 129,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 294.375,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.4554,
    "c": 0.16745,
    "h": 323.9
  },
  "luminance": 0.08158
}

Semantic roles & 50–950 ramp

primary
#812A8A
secondary
#64B45B
accent
#DD4B59
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #812A8A

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

Preview Lab → · Contrast checker → · Palette generator →

#812A8A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva