#812D97#812D97

#812D97 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.7% C 0.175 H 318.5°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#812D97
RGBrgb(129, 45, 151)
HSLhsl(288, 54%, 38%)
HSVhsv(288, 70%, 59%)
CMYKcmyk(14.6%, 70.2%, 0%, 40.8%)
CIE-LABlab(35.56, 51.40, -41.46)
CIE-LCHlch(35.56, 66.04, 321.11°)
OKLaboklab(46.69% 0.1315 -0.1162)
OKLCHoklch(46.69% 0.175 318.5)
XYZxyz(15.5768, 8.7790, 30.1462)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812D97 #43972D
analogous
#4C2D97 #812D97 #972D78
triadic
#812D97 #97812D #2D9781
tetradic
#812D97 #974C2D #43972D #2D7897
square
#812D97 #974C2D #43972D #2D7897
split-complementary
#812D97 #78972D #2D974C
monochromatic
#301139 #591F68 #812D97 #A93CC5 #BE6BD3

Accessibility & contrast

On white

7.62
#812D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#812D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812D97
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812D97#FFFFFF#000000##FFFFFF
##812D971.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#335695
Tritanopia (blue-blind)
#81415F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #812d97;
/* rgb */ color: rgb(129, 45, 151);
/* oklch */ color: oklch(46.7% 0.175 318.5);
Tailwind
colors: {
  custom: {
    50: '#a96db6',
    500: '#812d97',
    950: '#000000',
  },
}
SCSS
$custom: #812d97;
$custom-light: #a96db6;
$custom-dark: #000000;
JSON
{
  "hex": "#812d97",
  "rgb": {
    "r": 129,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 287.547,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.4669,
    "c": 0.17549,
    "h": 318.5
  },
  "luminance": 0.08778
}

Semantic roles & 50–950 ramp

primary
#812D97
secondary
#77BA66
accent
#DD4A69
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #812D97

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

Preview Lab → · Contrast checker → · Palette generator →

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