#812E7F#812E7F

#812E7F is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.3% C 0.152 H 328.7°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#812E7F
RGBrgb(129, 46, 127)
HSLhsl(301, 47%, 34%)
HSVhsv(301, 64%, 51%)
CMYKcmyk(0%, 64.3%, 1.6%, 49.4%)
CIE-LABlab(34.30, 46.36, -28.68)
CIE-LCHlch(34.30, 54.51, 328.26°)
OKLaboklab(45.33% 0.13 -0.079)
OKLCHoklch(45.33% 0.152 328.7)
XYZxyz(13.8609, 8.1544, 20.9184)
Luminance0.0815 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812E7F #2E8130
analogous
#5A2E81 #812E7F #812E56
triadic
#812E7F #7F812E #2E7F81
tetradic
#812E7F #815A2E #2E8130 #2E5681
square
#812E7F #815A2E #2E8130 #2E5681
split-complementary
#812E7F #56812E #2E815A
monochromatic
#270E26 #541E53 #812E7F #AE3EAB #C762C5

Accessibility & contrast

On white

7.98
#812E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#812E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812E7F
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812E7F#FFFFFF#000000##FFFFFF
##812E7F1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254A81
Deuteranopia (green-blind)
#43557D
Tritanopia (blue-blind)
#853852
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #812e7f;
/* rgb */ color: rgb(129, 46, 127);
/* oklch */ color: oklch(45.3% 0.152 328.7);
Tailwind
colors: {
  custom: {
    50: '#a86da4',
    500: '#812e7f',
    950: '#000000',
  },
}
SCSS
$custom: #812e7f;
$custom-light: #a86da4;
$custom-dark: #000000;
JSON
{
  "hex": "#812e7f",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 127
  },
  "hsl": {
    "h": 301.446,
    "s": 47.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45332,
    "c": 0.15215,
    "h": 328.7
  },
  "luminance": 0.08153
}

Semantic roles & 50–950 ramp

primary
#812E7F
secondary
#5DAE5F
accent
#D75451
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #812E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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