#812E7B#812E7B

#812E7B is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.1% C 0.149 H 330.7°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#812E7B
RGBrgb(129, 46, 123)
HSLhsl(304, 47%, 34%)
HSVhsv(304, 64%, 51%)
CMYKcmyk(0%, 64.3%, 4.7%, 49.4%)
CIE-LABlab(34.09, 45.64, -26.51)
CIE-LCHlch(34.09, 52.78, 329.85°)
OKLaboklab(45.11% 0.1296 -0.0728)
OKLCHoklch(45.11% 0.149 330.7)
XYZxyz(13.6053, 8.0522, 19.5727)
Luminance0.0805 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812E7B #2E8134
analogous
#5E2E81 #812E7B #812E52
triadic
#812E7B #7B812E #2E7B81
tetradic
#812E7B #815E2E #2E8134 #2E5281
square
#812E7B #815E2E #2E8134 #2E5281
split-complementary
#812E7B #52812E #2E815E
monochromatic
#270E25 #541E50 #812E7B #AE3EA6 #C762C0

Accessibility & contrast

On white

8.05
#812E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#812E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812E7B
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812E7B#FFFFFF#000000##FFFFFF
##812E7B1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28497D
Deuteranopia (green-blind)
#455479
Tritanopia (blue-blind)
#863650
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #812e7b;
/* rgb */ color: rgb(129, 46, 123);
/* oklch */ color: oklch(45.1% 0.149 330.7);
Tailwind
colors: {
  custom: {
    50: '#a86da1',
    500: '#812e7b',
    950: '#000000',
  },
}
SCSS
$custom: #812e7b;
$custom-light: #a86da1;
$custom-dark: #000000;
JSON
{
  "hex": "#812e7b",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 123
  },
  "hsl": {
    "h": 304.337,
    "s": 47.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.4511,
    "c": 0.14868,
    "h": 330.7
  },
  "luminance": 0.08051
}

Semantic roles & 50–950 ramp

primary
#812E7B
secondary
#5DAE63
accent
#D75A51
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070F
muted
#7F7A7E

Preview Lab

Preview with #812E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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