#812AAA#812AAA

#812AAA is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.7% C 0.197 H 312.2°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#812AAA
RGBrgb(129, 42, 170)
HSLhsl(281, 60%, 42%)
HSVhsv(281, 75%, 67%)
CMYKcmyk(24.1%, 75.3%, 0%, 33.3%)
CIE-LABlab(36.42, 56.53, -51.54)
CIE-LCHlch(36.42, 76.50, 317.64°)
OKLaboklab(47.71% 0.1324 -0.1458)
OKLCHoklch(47.71% 0.197 312.2)
XYZxyz(17.1356, 9.2258, 38.9005)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812AAA #53AA2A
analogous
#412AAA #812AAA #AA2A93
triadic
#812AAA #AA812A #2AAA81
tetradic
#812AAA #AA412A #53AA2A #2A93AA
square
#812AAA #AA412A #53AA2A #2A93AA
split-complementary
#812AAA #93AA2A #2AAA41
monochromatic
#371248 #5C1E79 #812AAA #A241D0 #BA72DC

Accessibility & contrast

On white

7.38
#812AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#812AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812AAA
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812AAA#FFFFFF#000000##FFFFFF
##812AAA1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#1857A7
Tritanopia (blue-blind)
#7C4768
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #812aaa;
/* rgb */ color: rgb(129, 42, 170);
/* oklch */ color: oklch(47.7% 0.197 312.2);
Tailwind
colors: {
  custom: {
    50: '#aa6dc4',
    500: '#812aaa',
    950: '#000000',
  },
}
SCSS
$custom: #812aaa;
$custom-light: #aa6dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#812aaa",
  "rgb": {
    "r": 129,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 280.781,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47711,
    "c": 0.19692,
    "h": 312.2
  },
  "luminance": 0.09225
}

Semantic roles & 50–950 ramp

primary
#812AAA
secondary
#88C36C
accent
#E44477
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #812AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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