#812AA4#812AA4

#812AA4 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.3% C 0.191 H 314.2°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#812AA4
RGBrgb(129, 42, 164)
HSLhsl(283, 59%, 40%)
HSVhsv(283, 74%, 64%)
CMYKcmyk(21.3%, 74.4%, 0%, 35.7%)
CIE-LABlab(35.99, 55.28, -48.63)
CIE-LCHlch(35.99, 73.62, 318.66°)
OKLaboklab(47.28% 0.1333 -0.1372)
OKLCHoklch(47.28% 0.191 314.2)
XYZxyz(16.5809, 9.0040, 35.9793)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812AA4 #4DA42A
analogous
#442AA4 #812AA4 #A42A8A
triadic
#812AA4 #A4812A #2AA481
tetradic
#812AA4 #A4442A #4DA42A #2A8AA4
square
#812AA4 #A4442A #4DA42A #2A8AA4
split-complementary
#812AA4 #8AA42A #2AA444
monochromatic
#341143 #5B1E73 #812AA4 #A43ECD #BB6EDA

Accessibility & contrast

On white

7.50
#812AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#812AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812AA4
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812AA4#FFFFFF#000000##FFFFFF
##812AA41.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#2257A1
Tritanopia (blue-blind)
#7E4565
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #812aa4;
/* rgb */ color: rgb(129, 42, 164);
/* oklch */ color: oklch(47.3% 0.191 314.2);
Tailwind
colors: {
  custom: {
    50: '#aa6cc0',
    500: '#812aa4',
    950: '#000000',
  },
}
SCSS
$custom: #812aa4;
$custom-light: #aa6cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#812aa4",
  "rgb": {
    "r": 129,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 282.787,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47277,
    "c": 0.19131,
    "h": 314.2
  },
  "luminance": 0.09003
}

Semantic roles & 50–950 ramp

primary
#812AA4
secondary
#82C169
accent
#E24572
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #812AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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