#812EA6#812EA6

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

Color values

HEX#812EA6
RGBrgb(129, 46, 166)
HSLhsl(282, 57%, 42%)
HSVhsv(282, 72%, 65%)
CMYKcmyk(22.3%, 72.3%, 0%, 34.9%)
CIE-LABlab(36.70, 54.09, -48.69)
CIE-LCHlch(36.70, 72.78, 318.00°)
OKLaboklab(47.82% 0.129 -0.1374)
OKLCHoklch(47.82% 0.189 313.2)
XYZxyz(16.9120, 9.3748, 36.9876)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812EA6 #53A62E
analogous
#452EA6 #812EA6 #A62E8F
triadic
#812EA6 #A6812E #2EA681
tetradic
#812EA6 #A6452E #53A62E #2E8FA6
square
#812EA6 #A6452E #53A62E #2E8FA6
split-complementary
#812EA6 #8FA62E #2EA645
monochromatic
#371346 #5C2176 #812EA6 #A246CC #BA76D9

Accessibility & contrast

On white

7.30
#812EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #812EA6
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812EA6#FFFFFF#000000##FFFFFF
##812EA61.007.302.877.30
#FFFFFF7.301.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A9
Deuteranopia (green-blind)
#2358A3
Tritanopia (blue-blind)
#7D4867
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #812ea6;
/* rgb */ color: rgb(129, 46, 166);
/* oklch */ color: oklch(47.8% 0.189 313.2);
Tailwind
colors: {
  custom: {
    50: '#aa6ec1',
    500: '#812ea6',
    950: '#000000',
  },
}
SCSS
$custom: #812ea6;
$custom-light: #aa6ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#812ea6",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 281.5,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47821,
    "c": 0.18852,
    "h": 313.2
  },
  "luminance": 0.09374
}

Semantic roles & 50–950 ramp

primary
#812EA6
secondary
#88C16F
accent
#E04877
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #812EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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