#812EA8#812EA8

#812EA8 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 48.0% C 0.190 H 312.5°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#812EA8
RGBrgb(129, 46, 168)
HSLhsl(281, 57%, 42%)
HSVhsv(281, 73%, 66%)
CMYKcmyk(23.2%, 72.6%, 0%, 34.1%)
CIE-LABlab(36.83, 54.51, -49.67)
CIE-LCHlch(36.83, 73.75, 317.66°)
OKLaboklab(47.96% 0.1288 -0.1403)
OKLCHoklch(47.96% 0.19 312.5)
XYZxyz(17.0969, 9.4488, 37.9614)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812EA8 #55A82E
analogous
#442EA8 #812EA8 #A82E92
triadic
#812EA8 #A8812E #2EA881
tetradic
#812EA8 #A8442E #55A82E #2E92A8
square
#812EA8 #A8442E #55A82E #2E92A8
split-complementary
#812EA8 #92A82E #2EA844
monochromatic
#371448 #5C2178 #812EA8 #A247CD #BA77DA

Accessibility & contrast

On white

7.27
#812EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#812EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812EA8
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812EA8#FFFFFF#000000##FFFFFF
##812EA81.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AB
Deuteranopia (green-blind)
#2158A5
Tritanopia (blue-blind)
#7D4968
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #812ea8;
/* rgb */ color: rgb(129, 46, 168);
/* oklch */ color: oklch(48.0% 0.190 312.5);
Tailwind
colors: {
  custom: {
    50: '#aa6fc3',
    500: '#812ea8',
    950: '#000000',
  },
}
SCSS
$custom: #812ea8;
$custom-light: #aa6fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#812ea8",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 280.82,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47963,
    "c": 0.19044,
    "h": 312.5
  },
  "luminance": 0.09448
}

Semantic roles & 50–950 ramp

primary
#812EA8
secondary
#8AC270
accent
#E04878
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #812EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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