#812CA8#812CA8

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

Color values

HEX#812CA8
RGBrgb(129, 44, 168)
HSLhsl(281, 58%, 42%)
HSVhsv(281, 74%, 66%)
CMYKcmyk(23.2%, 73.8%, 0%, 34.1%)
CIE-LABlab(36.55, 55.33, -50.13)
CIE-LCHlch(36.55, 74.66, 317.82°)
OKLaboklab(47.76% 0.1308 -0.1417)
OKLCHoklch(47.76% 0.193 312.7)
XYZxyz(17.0206, 9.2961, 37.9359)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812CA8 #53A82C
analogous
#432CA8 #812CA8 #A82C91
triadic
#812CA8 #A8812C #2CA881
tetradic
#812CA8 #A8432C #53A82C #2C91A8
square
#812CA8 #A8432C #53A82C #2C91A8
split-complementary
#812CA8 #91A82C #2CA843
monochromatic
#371347 #5C1F78 #812CA8 #A243CE #BA74DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##812CA8#FFFFFF#000000##FFFFFF
##812CA81.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)
#0052AB
Deuteranopia (green-blind)
#1E58A5
Tritanopia (blue-blind)
#7D4868
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #812ca8;
/* rgb */ color: rgb(129, 44, 168);
/* oklch */ color: oklch(47.8% 0.193 312.7);
Tailwind
colors: {
  custom: {
    50: '#aa6ec3',
    500: '#812ca8',
    950: '#000000',
  },
}
SCSS
$custom: #812ca8;
$custom-light: #aa6ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#812ca8",
  "rgb": {
    "r": 129,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 281.129,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4776,
    "c": 0.19279,
    "h": 312.7
  },
  "luminance": 0.09296
}

Semantic roles & 50–950 ramp

primary
#812CA8
secondary
#88C26E
accent
#E24677
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #812CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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