#812C8A#812C8A

#812C8A is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.8% C 0.165 H 323.8°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#812C8A
RGBrgb(129, 44, 138)
HSLhsl(294, 52%, 36%)
HSVhsv(294, 68%, 54%)
CMYKcmyk(6.5%, 68.1%, 0%, 45.9%)
CIE-LABlab(34.61, 49.28, -35.01)
CIE-LCHlch(34.61, 60.45, 324.61°)
OKLaboklab(45.75% 0.1329 -0.0974)
OKLCHoklch(45.75% 0.165 323.8)
XYZxyz(14.5410, 8.3043, 24.8768)
Luminance0.0830 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812C8A #358A2C
analogous
#522C8A #812C8A #8A2C64
triadic
#812C8A #8A812C #2C8A81
tetradic
#812C8A #8A522C #358A2C #2C648A
square
#812C8A #8A522C #358A2C #2C648A
split-complementary
#812C8A #648A2C #2C8A52
monochromatic
#2A0E2D #561D5C #812C8A #AC3BB8 #C363CD

Accessibility & contrast

On white

7.89
#812C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#812C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812C8A
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812C8A#FFFFFF#000000##FFFFFF
##812C8A1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164B8D
Deuteranopia (green-blind)
#3B5588
Tritanopia (blue-blind)
#833B57
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #812c8a;
/* rgb */ color: rgb(129, 44, 138);
/* oklch */ color: oklch(45.8% 0.165 323.8);
Tailwind
colors: {
  custom: {
    50: '#a96cac',
    500: '#812c8a',
    950: '#000000',
  },
}
SCSS
$custom: #812c8a;
$custom-light: #a96cac;
$custom-dark: #000000;
JSON
{
  "hex": "#812c8a",
  "rgb": {
    "r": 129,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 294.255,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45754,
    "c": 0.16479,
    "h": 323.8
  },
  "luminance": 0.08303
}

Semantic roles & 50–950 ramp

primary
#812C8A
secondary
#66B45E
accent
#DB4D5A
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #812C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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