#812DA8#812DA8

#812DA8 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.9% C 0.192 H 312.6°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#812DA8
RGBrgb(129, 45, 168)
HSLhsl(281, 58%, 42%)
HSVhsv(281, 73%, 66%)
CMYKcmyk(23.2%, 73.2%, 0%, 34.1%)
CIE-LABlab(36.69, 54.92, -49.90)
CIE-LCHlch(36.69, 74.21, 317.74°)
OKLaboklab(47.86% 0.1298 -0.141)
OKLCHoklch(47.86% 0.192 312.6)
XYZxyz(17.0583, 9.3715, 37.9485)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812DA8 #54A82D
analogous
#442DA8 #812DA8 #A82D91
triadic
#812DA8 #A8812D #2DA881
tetradic
#812DA8 #A8442D #54A82D #2D91A8
square
#812DA8 #A8442D #54A82D #2D91A8
split-complementary
#812DA8 #91A82D #2DA844
monochromatic
#371347 #5C2078 #812DA8 #A245CD #BA75DA

Accessibility & contrast

On white

7.31
#812DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #812DA8
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812DA8#FFFFFF#000000##FFFFFF
##812DA81.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#1F58A5
Tritanopia (blue-blind)
#7D4868
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #812da8;
/* rgb */ color: rgb(129, 45, 168);
/* oklch */ color: oklch(47.9% 0.192 312.6);
Tailwind
colors: {
  custom: {
    50: '#aa6ec3',
    500: '#812da8',
    950: '#000000',
  },
}
SCSS
$custom: #812da8;
$custom-light: #aa6ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#812da8",
  "rgb": {
    "r": 129,
    "g": 45,
    "b": 168
  },
  "hsl": {
    "h": 280.976,
    "s": 57.746,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47861,
    "c": 0.19163,
    "h": 312.6
  },
  "luminance": 0.09371
}

Semantic roles & 50–950 ramp

primary
#812DA8
secondary
#89C26F
accent
#E14778
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #812DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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