#812CAB#812CAB

#812CAB is a mid, vivid purple. Relative luminance 0.094; OKLCH L 48.0% C 0.196 H 311.8°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#812CAB
RGBrgb(129, 44, 171)
HSLhsl(280, 59%, 42%)
HSVhsv(280, 74%, 67%)
CMYKcmyk(24.6%, 74.3%, 0%, 32.9%)
CIE-LABlab(36.76, 55.96, -51.58)
CIE-LCHlch(36.76, 76.11, 317.33°)
OKLaboklab(47.98% 0.1303 -0.1459)
OKLCHoklch(47.98% 0.196 311.8)
XYZxyz(17.3033, 9.4092, 39.4248)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812CAB #56AB2C
analogous
#412CAB #812CAB #AB2C96
triadic
#812CAB #AB812C #2CAB81
tetradic
#812CAB #AB412C #56AB2C #2C96AB
square
#812CAB #AB412C #56AB2C #2C96AB
split-complementary
#812CAB #96AB2C #2CAB41
monochromatic
#38134A #5C1F7A #812CAB #A145CF #BA76DC

Accessibility & contrast

On white

7.29
#812CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#812CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812CAB
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812CAB#FFFFFF#000000##FFFFFF
##812CAB1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AF
Deuteranopia (green-blind)
#1958A8
Tritanopia (blue-blind)
#7C4969
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #812cab;
/* rgb */ color: rgb(129, 44, 171);
/* oklch */ color: oklch(48.0% 0.196 311.8);
Tailwind
colors: {
  custom: {
    50: '#aa6ec5',
    500: '#812cab',
    950: '#000000',
  },
}
SCSS
$custom: #812cab;
$custom-light: #aa6ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#812cab",
  "rgb": {
    "r": 129,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 280.157,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47978,
    "c": 0.19564,
    "h": 311.8
  },
  "luminance": 0.09409
}

Semantic roles & 50–950 ramp

primary
#812CAB
secondary
#8BC36F
accent
#E24679
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #812CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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