#812DA4#812DA4

#812DA4 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.6% C 0.188 H 313.9°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#812DA4
RGBrgb(129, 45, 164)
HSLhsl(282, 57%, 41%)
HSVhsv(282, 73%, 64%)
CMYKcmyk(21.3%, 72.6%, 0%, 35.7%)
CIE-LABlab(36.41, 54.08, -47.95)
CIE-LCHlch(36.41, 72.27, 318.44°)
OKLaboklab(47.58% 0.1303 -0.1352)
OKLCHoklch(47.58% 0.188 313.9)
XYZxyz(16.6913, 9.2248, 36.0161)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812DA4 #50A42D
analogous
#452DA4 #812DA4 #A42D8B
triadic
#812DA4 #A4812D #2DA481
tetradic
#812DA4 #A4452D #50A42D #2D8BA4
square
#812DA4 #A4452D #50A42D #2D8BA4
split-complementary
#812DA4 #8BA42D #2DA445
monochromatic
#351344 #5B2074 #812DA4 #A343CB #BB73D9

Accessibility & contrast

On white

7.38
#812DA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#812DA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812DA4
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812DA4#FFFFFF#000000##FFFFFF
##812DA41.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#2558A1
Tritanopia (blue-blind)
#7E4666
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #812da4;
/* rgb */ color: rgb(129, 45, 164);
/* oklch */ color: oklch(47.6% 0.188 313.9);
Tailwind
colors: {
  custom: {
    50: '#a96ec0',
    500: '#812da4',
    950: '#000000',
  },
}
SCSS
$custom: #812da4;
$custom-light: #a96ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#812da4",
  "rgb": {
    "r": 129,
    "g": 45,
    "b": 164
  },
  "hsl": {
    "h": 282.353,
    "s": 56.938,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47576,
    "c": 0.1878,
    "h": 313.9
  },
  "luminance": 0.09224
}

Semantic roles & 50–950 ramp

primary
#812DA4
secondary
#85C06D
accent
#E04874
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #812DA4

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

Preview Lab → · Contrast checker → · Palette generator →

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