#812AA2#812AA2

#812AA2 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.1% C 0.189 H 314.8°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#812AA2
RGBrgb(129, 42, 162)
HSLhsl(284, 59%, 40%)
HSVhsv(284, 74%, 64%)
CMYKcmyk(20.4%, 74.1%, 0%, 36.5%)
CIE-LABlab(35.85, 54.86, -47.65)
CIE-LCHlch(35.85, 72.66, 319.03°)
OKLaboklab(47.14% 0.1336 -0.1343)
OKLCHoklch(47.14% 0.189 314.8)
XYZxyz(16.4017, 8.9323, 35.0355)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812AA2 #4BA22A
analogous
#452AA2 #812AA2 #A22A87
triadic
#812AA2 #A2812A #2AA281
tetradic
#812AA2 #A2452A #4BA22A #2A87A2
square
#812AA2 #A2452A #4BA22A #2A87A2
split-complementary
#812AA2 #87A22A #2AA245
monochromatic
#341141 #5A1D71 #812AA2 #A53DCD #BC6DD9

Accessibility & contrast

On white

7.54
#812AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#812AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812AA2
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812AA2#FFFFFF#000000##FFFFFF
##812AA21.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#25579F
Tritanopia (blue-blind)
#7E4464
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #812aa2;
/* rgb */ color: rgb(129, 42, 162);
/* oklch */ color: oklch(47.1% 0.189 314.8);
Tailwind
colors: {
  custom: {
    50: '#a96cbe',
    500: '#812aa2',
    950: '#000000',
  },
}
SCSS
$custom: #812aa2;
$custom-light: #a96cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#812aa2",
  "rgb": {
    "r": 129,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 283.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.47135,
    "c": 0.18944,
    "h": 314.8
  },
  "luminance": 0.08932
}

Semantic roles & 50–950 ramp

primary
#812AA2
secondary
#80C068
accent
#E24671
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #812AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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