#812E8D#812E8D

#812E8D is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.2% C 0.165 H 322.4°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#812E8D
RGBrgb(129, 46, 141)
HSLhsl(292, 51%, 37%)
HSVhsv(292, 67%, 55%)
CMYKcmyk(8.5%, 67.4%, 0%, 44.7%)
CIE-LABlab(35.09, 48.99, -36.09)
CIE-LCHlch(35.09, 60.85, 323.63°)
OKLaboklab(46.16% 0.1306 -0.1005)
OKLCHoklch(46.16% 0.165 322.4)
XYZxyz(14.8375, 8.5450, 26.0620)
Luminance0.0854 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812E8D #3A8D2E
analogous
#522E8D #812E8D #8D2E6A
triadic
#812E8D #8D812E #2E8D81
tetradic
#812E8D #8D522E #3A8D2E #2E6A8D
square
#812E8D #8D522E #3A8D2E #2E6A8D
split-complementary
#812E8D #6A8D2E #2E8D52
monochromatic
#2D1031 #571F5F #812E8D #AB3DBB #C168CE

Accessibility & contrast

On white

7.75
#812E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#812E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812E8D
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812E8D#FFFFFF#000000##FFFFFF
##812E8D1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154C90
Deuteranopia (green-blind)
#3B568B
Tritanopia (blue-blind)
#833E59
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #812e8d;
/* rgb */ color: rgb(129, 46, 141);
/* oklch */ color: oklch(46.2% 0.165 322.4);
Tailwind
colors: {
  custom: {
    50: '#a86eaf',
    500: '#812e8d',
    950: '#000000',
  },
}
SCSS
$custom: #812e8d;
$custom-light: #a86eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#812e8d",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 292.421,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4616,
    "c": 0.16482,
    "h": 322.4
  },
  "luminance": 0.08544
}

Semantic roles & 50–950 ramp

primary
#812E8D
secondary
#6DB562
accent
#DA4E5F
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #812E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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