#812FA7#812FA7

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

Color values

HEX#812FA7
RGBrgb(129, 47, 167)
HSLhsl(281, 56%, 42%)
HSVhsv(281, 72%, 65%)
CMYKcmyk(22.8%, 71.9%, 0%, 34.5%)
CIE-LABlab(36.91, 53.88, -48.95)
CIE-LCHlch(36.91, 72.79, 317.75°)
OKLaboklab(48% 0.1279 -0.1382)
OKLCHoklch(48% 0.188 312.8)
XYZxyz(17.0436, 9.4907, 37.4858)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812FA7 #55A72F
analogous
#452FA7 #812FA7 #A72F91
triadic
#812FA7 #A7812F #2FA781
tetradic
#812FA7 #A7452F #55A72F #2F91A7
square
#812FA7 #A7452F #55A72F #2F91A7
split-complementary
#812FA7 #91A72F #2FA745
monochromatic
#371447 #5C2277 #812FA7 #A248CB #BA78D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##812FA7#FFFFFF#000000##FFFFFF
##812FA71.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)
#0053AA
Deuteranopia (green-blind)
#2359A4
Tritanopia (blue-blind)
#7D4968
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #812fa7;
/* rgb */ color: rgb(129, 47, 167);
/* oklch */ color: oklch(48.0% 0.188 312.8);
Tailwind
colors: {
  custom: {
    50: '#aa6fc2',
    500: '#812fa7',
    950: '#000000',
  },
}
SCSS
$custom: #812fa7;
$custom-light: #aa6fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#812fa7",
  "rgb": {
    "r": 129,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 281,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47997,
    "c": 0.18827,
    "h": 312.8
  },
  "luminance": 0.0949
}

Semantic roles & 50–950 ramp

primary
#812FA7
secondary
#8AC171
accent
#DF4878
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #812FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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