#812E7A#812E7A

#812E7A is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.1% C 0.148 H 331.2°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#812E7A
RGBrgb(129, 46, 122)
HSLhsl(305, 47%, 34%)
HSVhsv(305, 64%, 51%)
CMYKcmyk(0%, 64.3%, 5.4%, 49.4%)
CIE-LABlab(34.04, 45.47, -25.96)
CIE-LCHlch(34.04, 52.36, 330.27°)
OKLaboklab(45.06% 0.1295 -0.0712)
OKLCHoklch(45.06% 0.148 331.2)
XYZxyz(13.5431, 8.0272, 19.2447)
Luminance0.0803 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812E7A #2E8135
analogous
#5F2E81 #812E7A #812E51
triadic
#812E7A #7A812E #2E7A81
tetradic
#812E7A #815F2E #2E8135 #2E5181
square
#812E7A #815F2E #2E8135 #2E5181
split-complementary
#812E7A #51812E #2E815F
monochromatic
#270E25 #541E4F #812E7A #AE3EA5 #C762BF

Accessibility & contrast

On white

8.06
#812E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#812E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812E7A
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812E7A#FFFFFF#000000##FFFFFF
##812E7A1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29497C
Deuteranopia (green-blind)
#455478
Tritanopia (blue-blind)
#86364F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #812e7a;
/* rgb */ color: rgb(129, 46, 122);
/* oklch */ color: oklch(45.1% 0.148 331.2);
Tailwind
colors: {
  custom: {
    50: '#a86da0',
    500: '#812e7a',
    950: '#000000',
  },
}
SCSS
$custom: #812e7a;
$custom-light: #a86da0;
$custom-dark: #000000;
JSON
{
  "hex": "#812e7a",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 122
  },
  "hsl": {
    "h": 305.06,
    "s": 47.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45055,
    "c": 0.14782,
    "h": 331.2
  },
  "luminance": 0.08026
}

Semantic roles & 50–950 ramp

primary
#812E7A
secondary
#5DAE64
accent
#D75C51
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070F
muted
#7F7A7E

Preview Lab

Preview with #812E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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