#812E97#812E97

#812E97 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.8% C 0.174 H 318.4°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#812E97
RGBrgb(129, 46, 151)
HSLhsl(287, 53%, 39%)
HSVhsv(287, 70%, 59%)
CMYKcmyk(14.6%, 69.5%, 0%, 40.8%)
CIE-LABlab(35.71, 50.98, -41.22)
CIE-LCHlch(35.71, 65.56, 321.04°)
OKLaboklab(46.8% 0.1304 -0.1155)
OKLCHoklch(46.8% 0.174 318.4)
XYZxyz(15.6154, 8.8562, 30.1590)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812E97 #44972E
analogous
#4D2E97 #812E97 #972E78
triadic
#812E97 #97812E #2E9781
tetradic
#812E97 #974D2E #44972E #2E7897
square
#812E97 #974D2E #44972E #2E7897
split-complementary
#812E97 #78972E #2E974D
monochromatic
#311139 #592068 #812E97 #A83EC4 #BD6DD2

Accessibility & contrast

On white

7.58
#812E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#812E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812E97
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812E97#FFFFFF#000000##FFFFFF
##812E971.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9A
Deuteranopia (green-blind)
#335795
Tritanopia (blue-blind)
#81425F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #812e97;
/* rgb */ color: rgb(129, 46, 151);
/* oklch */ color: oklch(46.8% 0.174 318.4);
Tailwind
colors: {
  custom: {
    50: '#a96eb6',
    500: '#812e97',
    950: '#000000',
  },
}
SCSS
$custom: #812e97;
$custom-light: #a96eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#812e97",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 287.429,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46798,
    "c": 0.17419,
    "h": 318.4
  },
  "luminance": 0.08855
}

Semantic roles & 50–950 ramp

primary
#812E97
secondary
#78BA67
accent
#DD4B6A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #812E97

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

Preview Lab → · Contrast checker → · Palette generator →

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