#812E9F#812E9F

#812E9F is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.3% C 0.182 H 315.5°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#812E9F
RGBrgb(129, 46, 159)
HSLhsl(284, 55%, 40%)
HSVhsv(284, 71%, 62%)
CMYKcmyk(18.9%, 71.1%, 0%, 37.6%)
CIE-LABlab(36.22, 52.62, -45.24)
CIE-LCHlch(36.22, 69.39, 319.31°)
OKLaboklab(47.33% 0.1298 -0.1273)
OKLCHoklch(47.33% 0.182 315.5)
XYZxyz(16.2873, 9.1249, 33.6975)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812E9F #4C9F2E
analogous
#492E9F #812E9F #9F2E84
triadic
#812E9F #9F812E #2E9F81
tetradic
#812E9F #9F492E #4C9F2E #2E849F
square
#812E9F #9F492E #4C9F2E #2E849F
split-complementary
#812E9F #849F2E #2E9F49
monochromatic
#341340 #5A2070 #812E9F #A542C8 #BB71D6

Accessibility & contrast

On white

7.43
#812E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#812E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812E9F
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812E9F#FFFFFF#000000##FFFFFF
##812E9F1.007.432.827.43
#FFFFFF7.431.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A2
Deuteranopia (green-blind)
#2C579C
Tritanopia (blue-blind)
#7F4563
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #812e9f;
/* rgb */ color: rgb(129, 46, 159);
/* oklch */ color: oklch(47.3% 0.182 315.5);
Tailwind
colors: {
  custom: {
    50: '#a96ebc',
    500: '#812e9f',
    950: '#000000',
  },
}
SCSS
$custom: #812e9f;
$custom-light: #a96ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#812e9f",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 159
  },
  "hsl": {
    "h": 284.071,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47334,
    "c": 0.18181,
    "h": 315.5
  },
  "luminance": 0.09124
}

Semantic roles & 50–950 ramp

primary
#812E9F
secondary
#81BE6B
accent
#DE4971
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #812E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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