#812EA4#812EA4

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

Color values

HEX#812EA4
RGBrgb(129, 46, 164)
HSLhsl(282, 56%, 41%)
HSVhsv(282, 72%, 64%)
CMYKcmyk(21.3%, 72%, 0%, 35.7%)
CIE-LABlab(36.56, 53.66, -47.71)
CIE-LCHlch(36.56, 71.81, 318.36°)
OKLaboklab(47.68% 0.1293 -0.1346)
OKLCHoklch(47.68% 0.187 313.8)
XYZxyz(16.7299, 9.3020, 36.0289)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812EA4 #51A42E
analogous
#462EA4 #812EA4 #A42E8C
triadic
#812EA4 #A4812E #2EA481
tetradic
#812EA4 #A4462E #51A42E #2E8CA4
square
#812EA4 #A4462E #51A42E #2E8CA4
split-complementary
#812EA4 #8CA42E #2EA446
monochromatic
#361344 #5B2174 #812EA4 #A345CB #BA74D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##812EA4#FFFFFF#000000##FFFFFF
##812EA41.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)
#0052A7
Deuteranopia (green-blind)
#2658A1
Tritanopia (blue-blind)
#7E4766
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #812ea4;
/* rgb */ color: rgb(129, 46, 164);
/* oklch */ color: oklch(47.7% 0.187 313.8);
Tailwind
colors: {
  custom: {
    50: '#a96ec0',
    500: '#812ea4',
    950: '#000000',
  },
}
SCSS
$custom: #812ea4;
$custom-light: #a96ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#812ea4",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 282.203,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4768,
    "c": 0.18659,
    "h": 313.8
  },
  "luminance": 0.09301
}

Semantic roles & 50–950 ramp

primary
#812EA4
secondary
#86C06E
accent
#DF4875
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #812EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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