#812EA7#812EA7

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

Color values

HEX#812EA7
RGBrgb(129, 46, 167)
HSLhsl(281, 57%, 42%)
HSVhsv(281, 72%, 65%)
CMYKcmyk(22.8%, 72.5%, 0%, 34.5%)
CIE-LABlab(36.77, 54.30, -49.18)
CIE-LCHlch(36.77, 73.26, 317.83°)
OKLaboklab(47.89% 0.1289 -0.1389)
OKLCHoklch(47.89% 0.189 312.9)
XYZxyz(17.0041, 9.4116, 37.4726)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812EA7 #54A72E
analogous
#452EA7 #812EA7 #A72E91
triadic
#812EA7 #A7812E #2EA781
tetradic
#812EA7 #A7452E #54A72E #2E91A7
square
#812EA7 #A7452E #54A72E #2E91A7
split-complementary
#812EA7 #91A72E #2EA745
monochromatic
#371447 #5C2177 #812EA7 #A246CC #BA76D9

Accessibility & contrast

On white

7.29
#812EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#812EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812EA7
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812EA7#FFFFFF#000000##FFFFFF
##812EA71.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AA
Deuteranopia (green-blind)
#2258A4
Tritanopia (blue-blind)
#7D4868
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #812ea7;
/* rgb */ color: rgb(129, 46, 167);
/* oklch */ color: oklch(47.9% 0.189 312.9);
Tailwind
colors: {
  custom: {
    50: '#aa6fc2',
    500: '#812ea7',
    950: '#000000',
  },
}
SCSS
$custom: #812ea7;
$custom-light: #aa6fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#812ea7",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 281.157,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47892,
    "c": 0.18948,
    "h": 312.9
  },
  "luminance": 0.09411
}

Semantic roles & 50–950 ramp

primary
#812EA7
secondary
#89C170
accent
#E04878
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #812EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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