#812EA5#812EA5

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

Color values

HEX#812EA5
RGBrgb(129, 46, 165)
HSLhsl(282, 56%, 41%)
HSVhsv(282, 72%, 65%)
CMYKcmyk(21.8%, 72.1%, 0%, 35.3%)
CIE-LABlab(36.63, 53.88, -48.20)
CIE-LCHlch(36.63, 72.29, 318.18°)
OKLaboklab(47.75% 0.1291 -0.136)
OKLCHoklch(47.75% 0.188 313.5)
XYZxyz(16.8206, 9.3383, 36.5064)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812EA5 #52A52E
analogous
#462EA5 #812EA5 #A52E8E
triadic
#812EA5 #A5812E #2EA581
tetradic
#812EA5 #A5462E #52A52E #2E8EA5
square
#812EA5 #A5462E #52A52E #2E8EA5
split-complementary
#812EA5 #8EA52E #2EA546
monochromatic
#361345 #5C2175 #812EA5 #A345CB #BA75D8

Accessibility & contrast

On white

7.32
#812EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #812EA5
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812EA5#FFFFFF#000000##FFFFFF
##812EA51.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A8
Deuteranopia (green-blind)
#2558A2
Tritanopia (blue-blind)
#7D4767
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #812ea5;
/* rgb */ color: rgb(129, 46, 165);
/* oklch */ color: oklch(47.8% 0.188 313.5);
Tailwind
colors: {
  custom: {
    50: '#a96ec0',
    500: '#812ea5',
    950: '#000000',
  },
}
SCSS
$custom: #812ea5;
$custom-light: #a96ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#812ea5",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 281.849,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4775,
    "c": 0.18756,
    "h": 313.5
  },
  "luminance": 0.09338
}

Semantic roles & 50–950 ramp

primary
#812EA5
secondary
#87C06F
accent
#E04876
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #812EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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