#812E9D#812E9D

#812E9D is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.2% C 0.180 H 316.3°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#812E9D
RGBrgb(129, 46, 157)
HSLhsl(285, 55%, 40%)
HSVhsv(285, 71%, 62%)
CMYKcmyk(17.8%, 70.7%, 0%, 38.4%)
CIE-LABlab(36.09, 52.20, -44.24)
CIE-LCHlch(36.09, 68.43, 319.72°)
OKLaboklab(47.2% 0.13 -0.1244)
OKLCHoklch(47.2% 0.18 316.3)
XYZxyz(16.1151, 9.0561, 32.7909)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812E9D #4A9D2E
analogous
#4A2E9D #812E9D #9D2E82
triadic
#812E9D #9D812E #2E9D81
tetradic
#812E9D #9D4A2E #4A9D2E #2E829D
square
#812E9D #9D4A2E #4A9D2E #2E829D
split-complementary
#812E9D #829D2E #2E9D4A
monochromatic
#33123E #5A206E #812E9D #A541C7 #BC70D5

Accessibility & contrast

On white

7.47
#812E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#812E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812E9D
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812E9D#FFFFFF#000000##FFFFFF
##812E9D1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A0
Deuteranopia (green-blind)
#2E579A
Tritanopia (blue-blind)
#7F4462
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #812e9d;
/* rgb */ color: rgb(129, 46, 157);
/* oklch */ color: oklch(47.2% 0.180 316.3);
Tailwind
colors: {
  custom: {
    50: '#a96eba',
    500: '#812e9d',
    950: '#000000',
  },
}
SCSS
$custom: #812e9d;
$custom-light: #a96eba;
$custom-dark: #000000;
JSON
{
  "hex": "#812e9d",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 284.865,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.47198,
    "c": 0.1799,
    "h": 316.3
  },
  "luminance": 0.09055
}

Semantic roles & 50–950 ramp

primary
#812E9D
secondary
#7FBD6A
accent
#DE4A6F
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #812E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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