#812AA9#812AA9

#812AA9 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.6% C 0.196 H 312.6°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#812AA9
RGBrgb(129, 42, 169)
HSLhsl(281, 60%, 41%)
HSVhsv(281, 75%, 66%)
CMYKcmyk(23.7%, 75.1%, 0%, 33.7%)
CIE-LABlab(36.34, 56.32, -51.06)
CIE-LCHlch(36.34, 76.02, 317.80°)
OKLaboklab(47.64% 0.1326 -0.1444)
OKLCHoklch(47.64% 0.196 312.6)
XYZxyz(17.0414, 9.1881, 38.4042)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812AA9 #52A92A
analogous
#412AA9 #812AA9 #A92A92
triadic
#812AA9 #A9812A #2AA981
tetradic
#812AA9 #A9412A #52A92A #2A92A9
square
#812AA9 #A9412A #52A92A #2A92A9
split-complementary
#812AA9 #92A92A #2AA941
monochromatic
#361247 #5C1E78 #812AA9 #A341D0 #BA72DC

Accessibility & contrast

On white

7.40
#812AA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#812AA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812AA9
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812AA9#FFFFFF#000000##FFFFFF
##812AA91.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#1A57A6
Tritanopia (blue-blind)
#7C4768
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #812aa9;
/* rgb */ color: rgb(129, 42, 169);
/* oklch */ color: oklch(47.6% 0.196 312.6);
Tailwind
colors: {
  custom: {
    50: '#aa6dc3',
    500: '#812aa9',
    950: '#000000',
  },
}
SCSS
$custom: #812aa9;
$custom-light: #aa6dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#812aa9",
  "rgb": {
    "r": 129,
    "g": 42,
    "b": 169
  },
  "hsl": {
    "h": 281.102,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47638,
    "c": 0.19599,
    "h": 312.6
  },
  "luminance": 0.09188
}

Semantic roles & 50–950 ramp

primary
#812AA9
secondary
#87C36C
accent
#E34477
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #812AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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