#812E9A#812E9A

#812E9A is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.0% C 0.177 H 317.3°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#812E9A
RGBrgb(129, 46, 154)
HSLhsl(286, 54%, 39%)
HSVhsv(286, 70%, 60%)
CMYKcmyk(16.2%, 70.1%, 0%, 39.6%)
CIE-LABlab(35.90, 51.59, -42.74)
CIE-LCHlch(35.90, 66.99, 320.36°)
OKLaboklab(47% 0.1302 -0.12)
OKLCHoklch(47% 0.177 317.3)
XYZxyz(15.8621, 8.9549, 31.4585)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812E9A #479A2E
analogous
#4B2E9A #812E9A #9A2E7D
triadic
#812E9A #9A812E #2E9A81
tetradic
#812E9A #9A4B2E #479A2E #2E7D9A
square
#812E9A #9A4B2E #479A2E #2E7D9A
split-complementary
#812E9A #7D9A2E #2E9A4B
monochromatic
#32123C #5A206B #812E9A #A73FC6 #BC6FD4

Accessibility & contrast

On white

7.52
#812E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#812E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812E9A
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812E9A#FFFFFF#000000##FFFFFF
##812E9A1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9D
Deuteranopia (green-blind)
#315797
Tritanopia (blue-blind)
#804360
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #812e9a;
/* rgb */ color: rgb(129, 46, 154);
/* oklch */ color: oklch(47.0% 0.177 317.3);
Tailwind
colors: {
  custom: {
    50: '#a96eb8',
    500: '#812e9a',
    950: '#000000',
  },
}
SCSS
$custom: #812e9a;
$custom-light: #a96eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#812e9a",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 154
  },
  "hsl": {
    "h": 286.111,
    "s": 54,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46996,
    "c": 0.17704,
    "h": 317.3
  },
  "luminance": 0.08954
}

Semantic roles & 50–950 ramp

primary
#812E9A
secondary
#7CBB69
accent
#DD4A6C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #812E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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