#812E8A#812E8A

#812E8A is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.0% C 0.162 H 323.7°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#812E8A
RGBrgb(129, 46, 138)
HSLhsl(294, 50%, 36%)
HSVhsv(294, 67%, 54%)
CMYKcmyk(6.5%, 66.7%, 0%, 45.9%)
CIE-LABlab(34.92, 48.41, -34.52)
CIE-LCHlch(34.92, 59.46, 324.51°)
OKLaboklab(45.98% 0.1306 -0.096)
OKLCHoklch(45.98% 0.162 323.7)
XYZxyz(14.6173, 8.4569, 24.9023)
Luminance0.0846 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812E8A #378A2E
analogous
#532E8A #812E8A #8A2E65
triadic
#812E8A #8A812E #2E8A81
tetradic
#812E8A #8A532E #378A2E #2E658A
square
#812E8A #8A532E #378A2E #2E658A
split-complementary
#812E8A #658A2E #2E8A53
monochromatic
#2B0F2E #561F5C #812E8A #AC3DB8 #C266CC

Accessibility & contrast

On white

7.80
#812E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#812E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812E8A
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812E8A#FFFFFF#000000##FFFFFF
##812E8A1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4C8D
Deuteranopia (green-blind)
#3D5588
Tritanopia (blue-blind)
#833C58
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #812e8a;
/* rgb */ color: rgb(129, 46, 138);
/* oklch */ color: oklch(46.0% 0.162 323.7);
Tailwind
colors: {
  custom: {
    50: '#a86dac',
    500: '#812e8a',
    950: '#000000',
  },
}
SCSS
$custom: #812e8a;
$custom-light: #a86dac;
$custom-dark: #000000;
JSON
{
  "hex": "#812e8a",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 294.13,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45976,
    "c": 0.16206,
    "h": 323.7
  },
  "luminance": 0.08456
}

Semantic roles & 50–950 ramp

primary
#812E8A
secondary
#69B361
accent
#DA4E5C
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #812E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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