#812FA6#812FA6

#812FA6 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 47.9% C 0.187 H 313.1°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#812FA6
RGBrgb(129, 47, 166)
HSLhsl(281, 56%, 42%)
HSVhsv(281, 72%, 65%)
CMYKcmyk(22.3%, 71.7%, 0%, 34.9%)
CIE-LABlab(36.84, 53.67, -48.46)
CIE-LCHlch(36.84, 72.31, 317.92°)
OKLaboklab(47.93% 0.128 -0.1368)
OKLCHoklch(47.93% 0.187 313.1)
XYZxyz(16.9515, 9.4538, 37.0008)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812FA6 #54A62F
analogous
#462FA6 #812FA6 #A62F90
triadic
#812FA6 #A6812F #2FA681
tetradic
#812FA6 #A6462F #54A62F #2F90A6
square
#812FA6 #A6462F #54A62F #2F90A6
split-complementary
#812FA6 #90A62F #2FA646
monochromatic
#371447 #5C2176 #812FA6 #A247CB #BA77D8

Accessibility & contrast

On white

7.26
#812FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #812FA6
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812FA6#FFFFFF#000000##FFFFFF
##812FA61.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #812fa6;
/* rgb */ color: rgb(129, 47, 166);
/* oklch */ color: oklch(47.9% 0.187 313.1);
Tailwind
colors: {
  custom: {
    50: '#a96fc1',
    500: '#812fa6',
    950: '#000000',
  },
}
SCSS
$custom: #812fa6;
$custom-light: #a96fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#812fa6",
  "rgb": {
    "r": 129,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 281.345,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47926,
    "c": 0.18731,
    "h": 313.1
  },
  "luminance": 0.09453
}

Semantic roles & 50–950 ramp

primary
#812FA6
secondary
#89C170
accent
#DF4977
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #812FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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