#812E8F#812E8F

#812E8F is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.3% C 0.167 H 321.6°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#812E8F
RGBrgb(129, 46, 143)
HSLhsl(291, 51%, 37%)
HSVhsv(291, 68%, 56%)
CMYKcmyk(9.8%, 67.8%, 0%, 43.9%)
CIE-LABlab(35.21, 49.38, -37.12)
CIE-LCHlch(35.21, 61.78, 323.07°)
OKLaboklab(46.28% 0.1306 -0.1036)
OKLCHoklch(46.28% 0.167 321.6)
XYZxyz(14.9876, 8.6051, 26.8528)
Luminance0.0860 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812E8F #3C8F2E
analogous
#502E8F #812E8F #8F2E6D
triadic
#812E8F #8F812E #2E8F81
tetradic
#812E8F #8F502E #3C8F2E #2E6D8F
square
#812E8F #8F502E #3C8F2E #2E6D8F
split-complementary
#812E8F #6D8F2E #2E8F50
monochromatic
#2D1032 #571F61 #812E8F #AB3DBD #C069CF

Accessibility & contrast

On white

7.72
#812E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#812E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812E8F
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812E8F#FFFFFF#000000##FFFFFF
##812E8F1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124D92
Deuteranopia (green-blind)
#39568D
Tritanopia (blue-blind)
#823E5A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #812e8f;
/* rgb */ color: rgb(129, 46, 143);
/* oklch */ color: oklch(46.3% 0.167 321.6);
Tailwind
colors: {
  custom: {
    50: '#a96eb0',
    500: '#812e8f',
    950: '#000000',
  },
}
SCSS
$custom: #812e8f;
$custom-light: #a96eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#812e8f",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 291.34,
    "s": 51.323,
    "l": 37.059
  },
  "oklch": {
    "l": 0.46284,
    "c": 0.16667,
    "h": 321.6
  },
  "luminance": 0.08604
}

Semantic roles & 50–950 ramp

primary
#812E8F
secondary
#6FB663
accent
#DB4D61
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #812E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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