#812E99#812E99

#812E99 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.9% C 0.176 H 317.7°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#812E99
RGBrgb(129, 46, 153)
HSLhsl(287, 54%, 39%)
HSVhsv(287, 70%, 60%)
CMYKcmyk(15.7%, 69.9%, 0%, 40%)
CIE-LABlab(35.83, 51.38, -42.24)
CIE-LCHlch(35.83, 66.51, 320.58°)
OKLaboklab(46.93% 0.1302 -0.1185)
OKLCHoklch(46.93% 0.176 317.7)
XYZxyz(15.7792, 8.9217, 31.0217)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812E99 #46992E
analogous
#4C2E99 #812E99 #992E7C
triadic
#812E99 #99812E #2E9981
tetradic
#812E99 #994C2E #46992E #2E7C99
square
#812E99 #994C2E #46992E #2E7C99
split-complementary
#812E99 #7C992E #2E994C
monochromatic
#32123B #59206A #812E99 #A73FC5 #BD6ED3

Accessibility & contrast

On white

7.54
#812E99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#812E99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812E99
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812E99#FFFFFF#000000##FFFFFF
##812E991.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9C
Deuteranopia (green-blind)
#325796
Tritanopia (blue-blind)
#804260
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #812e99;
/* rgb */ color: rgb(129, 46, 153);
/* oklch */ color: oklch(46.9% 0.176 317.7);
Tailwind
colors: {
  custom: {
    50: '#a96eb8',
    500: '#812e99',
    950: '#000000',
  },
}
SCSS
$custom: #812e99;
$custom-light: #a96eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#812e99",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 153
  },
  "hsl": {
    "h": 286.542,
    "s": 53.769,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46929,
    "c": 0.17608,
    "h": 317.7
  },
  "luminance": 0.08921
}

Semantic roles & 50–950 ramp

primary
#812E99
secondary
#7BBB68
accent
#DD4B6C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #812E99

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

Preview Lab → · Contrast checker → · Palette generator →

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