#812AAC#812AAC

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

Color values

HEX#812AAC
RGBrgb(129, 42, 172)
HSLhsl(280, 61%, 42%)
HSVhsv(280, 76%, 67%)
CMYKcmyk(25%, 75.6%, 0%, 32.5%)
CIE-LABlab(36.56, 56.95, -52.51)
CIE-LCHlch(36.56, 77.46, 317.33°)
OKLaboklab(47.86% 0.1321 -0.1486)
OKLCHoklch(47.86% 0.199 311.6)
XYZxyz(17.3262, 9.3021, 39.9045)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812AAC #55AC2A
analogous
#402AAC #812AAC #AC2A96
triadic
#812AAC #AC812A #2AAC81
tetradic
#812AAC #AC402A #55AC2A #2A96AC
square
#812AAC #AC402A #55AC2A #2A96AC
split-complementary
#812AAC #96AC2A #2AAC40
monochromatic
#37124A #5C1E7B #812AAC #A242D1 #BA73DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##812AAC#FFFFFF#000000##FFFFFF
##812AAC1.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)
#0052B0
Deuteranopia (green-blind)
#1358A9
Tritanopia (blue-blind)
#7C4869
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #812aac;
/* rgb */ color: rgb(129, 42, 172);
/* oklch */ color: oklch(47.9% 0.199 311.6);
Tailwind
colors: {
  custom: {
    50: '#aa6dc5',
    500: '#812aac',
    950: '#000000',
  },
}
SCSS
$custom: #812aac;
$custom-light: #aa6dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#812aac",
  "rgb": {
    "r": 129,
    "g": 42,
    "b": 172
  },
  "hsl": {
    "h": 280.154,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47858,
    "c": 0.19881,
    "h": 311.6
  },
  "luminance": 0.09302
}

Semantic roles & 50–950 ramp

primary
#812AAC
secondary
#8AC46D
accent
#E44479
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #812AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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