#812CA2#812CA2

#812CA2 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.3% C 0.187 H 314.7°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#812CA2
RGBrgb(129, 44, 162)
HSLhsl(283, 57%, 40%)
HSVhsv(283, 73%, 64%)
CMYKcmyk(20.4%, 72.8%, 0%, 36.5%)
CIE-LABlab(36.13, 54.07, -47.20)
CIE-LCHlch(36.13, 71.77, 318.88°)
OKLaboklab(47.33% 0.1316 -0.133)
OKLCHoklch(47.33% 0.187 314.7)
XYZxyz(16.4744, 9.0777, 35.0598)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812CA2 #4DA22C
analogous
#462CA2 #812CA2 #A22C88
triadic
#812CA2 #A2812C #2CA281
tetradic
#812CA2 #A2462C #4DA22C #2C88A2
square
#812CA2 #A2462C #4DA22C #2C88A2
split-complementary
#812CA2 #88A22C #2CA246
monochromatic
#341242 #5B1F72 #812CA2 #A440CB #BB70D8

Accessibility & contrast

On white

7.46
#812CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#812CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812CA2
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812CA2#FFFFFF#000000##FFFFFF
##812CA21.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#27579F
Tritanopia (blue-blind)
#7E4564
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #812ca2;
/* rgb */ color: rgb(129, 44, 162);
/* oklch */ color: oklch(47.3% 0.187 314.7);
Tailwind
colors: {
  custom: {
    50: '#a96dbe',
    500: '#812ca2',
    950: '#000000',
  },
}
SCSS
$custom: #812ca2;
$custom-light: #a96dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#812ca2",
  "rgb": {
    "r": 129,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 283.22,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47334,
    "c": 0.1871,
    "h": 314.7
  },
  "luminance": 0.09077
}

Semantic roles & 50–950 ramp

primary
#812CA2
secondary
#82BF6A
accent
#E14772
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #812CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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