#812E8B#812E8B

#812E8B is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.0% C 0.163 H 323.2°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#812E8B
RGBrgb(129, 46, 139)
HSLhsl(294, 50%, 36%)
HSVhsv(294, 67%, 55%)
CMYKcmyk(7.2%, 66.9%, 0%, 45.5%)
CIE-LABlab(34.98, 48.61, -35.04)
CIE-LCHlch(34.98, 59.92, 324.21°)
OKLaboklab(46.04% 0.1306 -0.0975)
OKLCHoklch(46.04% 0.163 323.2)
XYZxyz(14.6900, 8.4860, 25.2853)
Luminance0.0848 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812E8B #388B2E
analogous
#532E8B #812E8B #8B2E67
triadic
#812E8B #8B812E #2E8B81
tetradic
#812E8B #8B532E #388B2E #2E678B
square
#812E8B #8B532E #388B2E #2E678B
split-complementary
#812E8B #678B2E #2E8B53
monochromatic
#2C102F #561F5D #812E8B #AC3DB9 #C267CD

Accessibility & contrast

On white

7.79
#812E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#812E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812E8B
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812E8B#FFFFFF#000000##FFFFFF
##812E8B1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184C8E
Deuteranopia (green-blind)
#3C5689
Tritanopia (blue-blind)
#833D58
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #812e8b;
/* rgb */ color: rgb(129, 46, 139);
/* oklch */ color: oklch(46.0% 0.163 323.2);
Tailwind
colors: {
  custom: {
    50: '#a86dad',
    500: '#812e8b',
    950: '#000000',
  },
}
SCSS
$custom: #812e8b;
$custom-light: #a86dad;
$custom-dark: #000000;
JSON
{
  "hex": "#812e8b",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 293.548,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46037,
    "c": 0.16297,
    "h": 323.2
  },
  "luminance": 0.08485
}

Semantic roles & 50–950 ramp

primary
#812E8B
secondary
#6AB361
accent
#DA4E5D
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #812E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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