#812EAA#812EAA

#812EAA is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.1% C 0.192 H 311.9°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#812EAA
RGBrgb(129, 46, 170)
HSLhsl(280, 57%, 42%)
HSVhsv(280, 73%, 67%)
CMYKcmyk(24.1%, 72.9%, 0%, 33.3%)
CIE-LABlab(36.97, 54.94, -50.64)
CIE-LCHlch(36.97, 74.72, 317.33°)
OKLaboklab(48.11% 0.1285 -0.1432)
OKLCHoklch(48.11% 0.192 311.9)
XYZxyz(17.2846, 9.5239, 38.9502)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812EAA #57AA2E
analogous
#432EAA #812EAA #AA2E95
triadic
#812EAA #AA812E #2EAA81
tetradic
#812EAA #AA432E #57AA2E #2E95AA
square
#812EAA #AA432E #57AA2E #2E95AA
split-complementary
#812EAA #95AA2E #2EAA43
monochromatic
#38144A #5C217A #812EAA #A148CD #BA78DA

Accessibility & contrast

On white

7.23
#812EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#812EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812EAA
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812EAA#FFFFFF#000000##FFFFFF
##812EAA1.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#1D59A7
Tritanopia (blue-blind)
#7C4A69
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #812eaa;
/* rgb */ color: rgb(129, 46, 170);
/* oklch */ color: oklch(48.1% 0.192 311.9);
Tailwind
colors: {
  custom: {
    50: '#aa6fc4',
    500: '#812eaa',
    950: '#000000',
  },
}
SCSS
$custom: #812eaa;
$custom-light: #aa6fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#812eaa",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 280.161,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.48106,
    "c": 0.19238,
    "h": 311.9
  },
  "luminance": 0.09523
}

Semantic roles & 50–950 ramp

primary
#812EAA
secondary
#8CC371
accent
#E1477A
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #812EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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