#812C8E#812C8E

#812C8E is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.0% C 0.168 H 322.1°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#812C8E
RGBrgb(129, 44, 142)
HSLhsl(292, 53%, 36%)
HSVhsv(292, 69%, 56%)
CMYKcmyk(9.2%, 69%, 0%, 44.3%)
CIE-LABlab(34.85, 50.04, -37.09)
CIE-LCHlch(34.85, 62.29, 323.45°)
OKLaboklab(46% 0.1329 -0.1035)
OKLCHoklch(46% 0.168 322.1)
XYZxyz(14.8359, 8.4223, 26.4302)
Luminance0.0842 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812C8E #398E2C
analogous
#502C8E #812C8E #8E2C6A
triadic
#812C8E #8E812C #2C8E81
tetradic
#812C8E #8E502C #398E2C #2C6A8E
square
#812C8E #8E502C #398E2C #2C6A8E
split-complementary
#812C8E #6A8E2C #2C8E50
monochromatic
#2C0F31 #571E5F #812C8E #AB3ABD #C165CF

Accessibility & contrast

On white

7.82
#812C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#812C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812C8E
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812C8E#FFFFFF#000000##FFFFFF
##812C8E1.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4C91
Deuteranopia (green-blind)
#39558C
Tritanopia (blue-blind)
#833D59
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #812c8e;
/* rgb */ color: rgb(129, 44, 142);
/* oklch */ color: oklch(46.0% 0.168 322.1);
Tailwind
colors: {
  custom: {
    50: '#a96daf',
    500: '#812c8e',
    950: '#000000',
  },
}
SCSS
$custom: #812c8e;
$custom-light: #a96daf;
$custom-dark: #000000;
JSON
{
  "hex": "#812c8e",
  "rgb": {
    "r": 129,
    "g": 44,
    "b": 142
  },
  "hsl": {
    "h": 292.041,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.46002,
    "c": 0.16844,
    "h": 322.1
  },
  "luminance": 0.08421
}

Semantic roles & 50–950 ramp

primary
#812C8E
secondary
#6BB660
accent
#DC4C5F
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #812C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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