#812BAA#812BAA

#812BAA is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.8% C 0.196 H 312.2°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#812BAA
RGBrgb(129, 43, 170)
HSLhsl(281, 60%, 42%)
HSVhsv(281, 75%, 67%)
CMYKcmyk(24.1%, 74.7%, 0%, 33.3%)
CIE-LABlab(36.55, 56.14, -51.32)
CIE-LCHlch(36.55, 76.07, 317.57°)
OKLaboklab(47.81% 0.1314 -0.1451)
OKLCHoklch(47.81% 0.196 312.2)
XYZxyz(17.1715, 9.2976, 38.9125)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812BAA #54AA2B
analogous
#422BAA #812BAA #AA2B94
triadic
#812BAA #AA812B #2BAA81
tetradic
#812BAA #AA422B #54AA2B #2B94AA
square
#812BAA #AA422B #54AA2B #2B94AA
split-complementary
#812BAA #94AA2B #2BAA42
monochromatic
#371248 #5C1F79 #812BAA #A243CF #BA74DC

Accessibility & contrast

On white

7.34
#812BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#812BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812BAA
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812BAA#FFFFFF#000000##FFFFFF
##812BAA1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#1958A7
Tritanopia (blue-blind)
#7C4869
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #812baa;
/* rgb */ color: rgb(129, 43, 170);
/* oklch */ color: oklch(47.8% 0.196 312.2);
Tailwind
colors: {
  custom: {
    50: '#aa6dc4',
    500: '#812baa',
    950: '#000000',
  },
}
SCSS
$custom: #812baa;
$custom-light: #aa6dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#812baa",
  "rgb": {
    "r": 129,
    "g": 43,
    "b": 170
  },
  "hsl": {
    "h": 280.63,
    "s": 59.624,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47807,
    "c": 0.19582,
    "h": 312.2
  },
  "luminance": 0.09297
}

Semantic roles & 50–950 ramp

primary
#812BAA
secondary
#89C36E
accent
#E34578
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #812BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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