#812EA9#812EA9

#812EA9 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.0% C 0.191 H 312.2°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#812EA9
RGBrgb(129, 46, 169)
HSLhsl(280, 57%, 42%)
HSVhsv(280, 73%, 66%)
CMYKcmyk(23.7%, 72.8%, 0%, 33.7%)
CIE-LABlab(36.90, 54.73, -50.16)
CIE-LCHlch(36.90, 74.23, 317.50°)
OKLaboklab(48.04% 0.1286 -0.1417)
OKLCHoklch(48.04% 0.191 312.2)
XYZxyz(17.1904, 9.4862, 38.4539)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812EA9 #56A92E
analogous
#442EA9 #812EA9 #A92E93
triadic
#812EA9 #A9812E #2EA981
tetradic
#812EA9 #A9442E #56A92E #2E93A9
square
#812EA9 #A9442E #56A92E #2E93A9
split-complementary
#812EA9 #93A92E #2EA944
monochromatic
#381449 #5C2179 #812EA9 #A147CD #BA77DA

Accessibility & contrast

On white

7.25
#812EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#812EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812EA9
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812EA9#FFFFFF#000000##FFFFFF
##812EA91.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AD
Deuteranopia (green-blind)
#1F58A6
Tritanopia (blue-blind)
#7C4969
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #812ea9;
/* rgb */ color: rgb(129, 46, 169);
/* oklch */ color: oklch(48.0% 0.191 312.2);
Tailwind
colors: {
  custom: {
    50: '#aa6fc3',
    500: '#812ea9',
    950: '#000000',
  },
}
SCSS
$custom: #812ea9;
$custom-light: #aa6fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#812ea9",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 169
  },
  "hsl": {
    "h": 280.488,
    "s": 57.209,
    "l": 42.157
  },
  "oklch": {
    "l": 0.48035,
    "c": 0.19141,
    "h": 312.2
  },
  "luminance": 0.09486
}

Semantic roles & 50–950 ramp

primary
#812EA9
secondary
#8BC271
accent
#E04779
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #812EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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