#812E8E#812E8E

#812E8E is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.2% C 0.166 H 322.0°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#812E8E
RGBrgb(129, 46, 142)
HSLhsl(292, 51%, 37%)
HSVhsv(292, 68%, 56%)
CMYKcmyk(9.2%, 67.6%, 0%, 44.3%)
CIE-LABlab(35.15, 49.19, -36.61)
CIE-LCHlch(35.15, 61.31, 323.34°)
OKLaboklab(46.22% 0.1306 -0.1021)
OKLCHoklch(46.22% 0.166 322)
XYZxyz(14.9122, 8.5749, 26.4556)
Luminance0.0857 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812E8E #3B8E2E
analogous
#512E8E #812E8E #8E2E6B
triadic
#812E8E #8E812E #2E8E81
tetradic
#812E8E #8E512E #3B8E2E #2E6B8E
square
#812E8E #8E512E #3B8E2E #2E6B8E
split-complementary
#812E8E #6B8E2E #2E8E51
monochromatic
#2D1032 #571F60 #812E8E #AB3DBC #C068CE

Accessibility & contrast

On white

7.74
#812E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#812E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812E8E
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812E8E#FFFFFF#000000##FFFFFF
##812E8E1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144D91
Deuteranopia (green-blind)
#3A568C
Tritanopia (blue-blind)
#833E5A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #812e8e;
/* rgb */ color: rgb(129, 46, 142);
/* oklch */ color: oklch(46.2% 0.166 322.0);
Tailwind
colors: {
  custom: {
    50: '#a96eaf',
    500: '#812e8e',
    950: '#000000',
  },
}
SCSS
$custom: #812e8e;
$custom-light: #a96eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#812e8e",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 142
  },
  "hsl": {
    "h": 291.875,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.46222,
    "c": 0.16575,
    "h": 322
  },
  "luminance": 0.08574
}

Semantic roles & 50–950 ramp

primary
#812E8E
secondary
#6EB563
accent
#DB4D60
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #812E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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