#812CA9#812CA9

#812CA9 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.8% C 0.194 H 312.4°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#812CA9
RGBrgb(129, 44, 169)
HSLhsl(281, 59%, 42%)
HSVhsv(281, 74%, 66%)
CMYKcmyk(23.7%, 74%, 0%, 33.7%)
CIE-LABlab(36.62, 55.54, -50.62)
CIE-LCHlch(36.62, 75.14, 317.65°)
OKLaboklab(47.83% 0.1306 -0.1431)
OKLCHoklch(47.83% 0.194 312.4)
XYZxyz(17.1141, 9.3336, 38.4284)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812CA9 #54A92C
analogous
#432CA9 #812CA9 #A92C93
triadic
#812CA9 #A9812C #2CA981
tetradic
#812CA9 #A9432C #54A92C #2C93A9
square
#812CA9 #A9432C #54A92C #2C93A9
split-complementary
#812CA9 #93A92C #2CA943
monochromatic
#371348 #5C1F78 #812CA9 #A244CE #BA74DB

Accessibility & contrast

On white

7.33
#812CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#812CA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812CA9
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812CA9#FFFFFF#000000##FFFFFF
##812CA91.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#1C58A6
Tritanopia (blue-blind)
#7C4868
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #812ca9;
/* rgb */ color: rgb(129, 44, 169);
/* oklch */ color: oklch(47.8% 0.194 312.4);
Tailwind
colors: {
  custom: {
    50: '#aa6ec3',
    500: '#812ca9',
    950: '#000000',
  },
}
SCSS
$custom: #812ca9;
$custom-light: #aa6ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#812ca9",
  "rgb": {
    "r": 129,
    "g": 44,
    "b": 169
  },
  "hsl": {
    "h": 280.8,
    "s": 58.685,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47832,
    "c": 0.19374,
    "h": 312.4
  },
  "luminance": 0.09333
}

Semantic roles & 50–950 ramp

primary
#812CA9
secondary
#89C36E
accent
#E24678
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #812CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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