#812E9B#812E9B

#812E9B is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.1% C 0.178 H 317.0°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#812E9B
RGBrgb(129, 46, 155)
HSLhsl(286, 54%, 39%)
HSVhsv(286, 70%, 61%)
CMYKcmyk(16.8%, 70.3%, 0%, 39.2%)
CIE-LABlab(35.96, 51.79, -43.24)
CIE-LCHlch(35.96, 67.47, 320.14°)
OKLaboklab(47.06% 0.1301 -0.1215)
OKLCHoklch(47.06% 0.178 317)
XYZxyz(15.9458, 8.9883, 31.8990)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812E9B #489B2E
analogous
#4B2E9B #812E9B #9B2E7F
triadic
#812E9B #9B812E #2E9B81
tetradic
#812E9B #9B4B2E #489B2E #2E7F9B
square
#812E9B #9B4B2E #489B2E #2E7F9B
split-complementary
#812E9B #7F9B2E #2E9B4B
monochromatic
#32123D #5A206C #812E9B #A640C6 #BC6FD4

Accessibility & contrast

On white

7.51
#812E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#812E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812E9B
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812E9B#FFFFFF#000000##FFFFFF
##812E9B1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9E
Deuteranopia (green-blind)
#305798
Tritanopia (blue-blind)
#804361
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #812e9b;
/* rgb */ color: rgb(129, 46, 155);
/* oklch */ color: oklch(47.1% 0.178 317.0);
Tailwind
colors: {
  custom: {
    50: '#a96eb9',
    500: '#812e9b',
    950: '#000000',
  },
}
SCSS
$custom: #812e9b;
$custom-light: #a96eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#812e9b",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 285.688,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.47063,
    "c": 0.17798,
    "h": 317
  },
  "luminance": 0.08988
}

Semantic roles & 50–950 ramp

primary
#812E9B
secondary
#7DBC69
accent
#DE4A6D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #812E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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