#812E87#812E87

#812E87 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.8% C 0.159 H 325.0°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#812E87
RGBrgb(129, 46, 135)
HSLhsl(296, 49%, 35%)
HSVhsv(296, 66%, 53%)
CMYKcmyk(4.4%, 65.9%, 0%, 47.1%)
CIE-LABlab(34.74, 47.84, -32.94)
CIE-LCHlch(34.74, 58.09, 325.45°)
OKLaboklab(45.8% 0.1305 -0.0914)
OKLCHoklch(45.8% 0.159 325)
XYZxyz(14.4031, 8.3713, 23.7741)
Luminance0.0837 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812E87 #34872E
analogous
#542E87 #812E87 #872E60
triadic
#812E87 #87812E #2E8781
tetradic
#812E87 #87542E #34872E #2E6087
square
#812E87 #87542E #34872E #2E6087
split-complementary
#812E87 #60872E #2E8754
monochromatic
#2A0F2C #551E59 #812E87 #AD3EB5 #C465CA

Accessibility & contrast

On white

7.85
#812E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#812E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812E87
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812E87#FFFFFF#000000##FFFFFF
##812E871.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4B8A
Deuteranopia (green-blind)
#3E5585
Tritanopia (blue-blind)
#843B56
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #812e87;
/* rgb */ color: rgb(129, 46, 135);
/* oklch */ color: oklch(45.8% 0.159 325.0);
Tailwind
colors: {
  custom: {
    50: '#a86daa',
    500: '#812e87',
    950: '#000000',
  },
}
SCSS
$custom: #812e87;
$custom-light: #a86daa;
$custom-dark: #000000;
JSON
{
  "hex": "#812e87",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 295.955,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45796,
    "c": 0.15931,
    "h": 325
  },
  "luminance": 0.0837
}

Semantic roles & 50–950 ramp

primary
#812E87
secondary
#65B160
accent
#D94F58
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #812E87

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

Preview Lab → · Contrast checker → · Palette generator →

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