#812EA3#812EA3

#812EA3 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.6% C 0.186 H 314.2°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#812EA3
RGBrgb(129, 46, 163)
HSLhsl(283, 56%, 41%)
HSVhsv(283, 72%, 64%)
CMYKcmyk(20.9%, 71.8%, 0%, 36.1%)
CIE-LABlab(36.49, 53.45, -47.22)
CIE-LCHlch(36.49, 71.32, 318.54°)
OKLaboklab(47.61% 0.1294 -0.1331)
OKLCHoklch(47.61% 0.186 314.2)
XYZxyz(16.6400, 9.2660, 35.5552)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812EA3 #50A32E
analogous
#462EA3 #812EA3 #A32E8A
triadic
#812EA3 #A3812E #2EA381
tetradic
#812EA3 #A3462E #50A32E #2E8AA3
square
#812EA3 #A3462E #50A32E #2E8AA3
split-complementary
#812EA3 #8AA32E #2EA346
monochromatic
#351344 #5B2173 #812EA3 #A344CA #BB74D8

Accessibility & contrast

On white

7.36
#812EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#812EA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812EA3
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812EA3#FFFFFF#000000##FFFFFF
##812EA31.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#2758A0
Tritanopia (blue-blind)
#7E4765
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #812ea3;
/* rgb */ color: rgb(129, 46, 163);
/* oklch */ color: oklch(47.6% 0.186 314.2);
Tailwind
colors: {
  custom: {
    50: '#a96ebf',
    500: '#812ea3',
    950: '#000000',
  },
}
SCSS
$custom: #812ea3;
$custom-light: #a96ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#812ea3",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 282.564,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.4761,
    "c": 0.18564,
    "h": 314.2
  },
  "luminance": 0.09265
}

Semantic roles & 50–950 ramp

primary
#812EA3
secondary
#85BF6D
accent
#DF4974
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #812EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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