#812CA4#812CA4

#812CA4 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.5% C 0.189 H 314.0°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#812CA4
RGBrgb(129, 44, 164)
HSLhsl(283, 58%, 41%)
HSVhsv(283, 73%, 64%)
CMYKcmyk(21.3%, 73.2%, 0%, 35.7%)
CIE-LABlab(36.27, 54.48, -48.18)
CIE-LCHlch(36.27, 72.73, 318.51°)
OKLaboklab(47.47% 0.1313 -0.1359)
OKLCHoklch(47.47% 0.189 314)
XYZxyz(16.6536, 9.1494, 36.0035)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812CA4 #4FA42C
analogous
#452CA4 #812CA4 #A42C8B
triadic
#812CA4 #A4812C #2CA481
tetradic
#812CA4 #A4452C #4FA42C #2C8BA4
square
#812CA4 #A4452C #4FA42C #2C8BA4
split-complementary
#812CA4 #8BA42C #2CA445
monochromatic
#351243 #5B1F74 #812CA4 #A441CC #BB71D9

Accessibility & contrast

On white

7.42
#812CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#812CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812CA4
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812CA4#FFFFFF#000000##FFFFFF
##812CA41.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#2457A1
Tritanopia (blue-blind)
#7E4665
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #812ca4;
/* rgb */ color: rgb(129, 44, 164);
/* oklch */ color: oklch(47.5% 0.189 314.0);
Tailwind
colors: {
  custom: {
    50: '#aa6dc0',
    500: '#812ca4',
    950: '#000000',
  },
}
SCSS
$custom: #812ca4;
$custom-light: #aa6dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#812ca4",
  "rgb": {
    "r": 129,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 282.5,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47474,
    "c": 0.18899,
    "h": 314
  },
  "luminance": 0.09149
}

Semantic roles & 50–950 ramp

primary
#812CA4
secondary
#84C06B
accent
#E14774
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #812CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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