#812787#812787

#812787 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.0% C 0.169 H 325.2°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#812787
RGBrgb(129, 39, 135)
HSLhsl(296, 55%, 34%)
HSVhsv(296, 71%, 53%)
CMYKcmyk(4.4%, 71.1%, 0%, 47.1%)
CIE-LABlab(33.71, 50.75, -34.59)
CIE-LCHlch(33.71, 61.42, 325.73°)
OKLaboklab(45.05% 0.1386 -0.0961)
OKLCHoklch(45.05% 0.169 325.2)
XYZxyz(14.1516, 7.8683, 23.6903)
Luminance0.0787 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812787 #2D8727
analogous
#512787 #812787 #87275D
triadic
#812787 #878127 #278781
tetradic
#812787 #875127 #2D8727 #275D87
square
#812787 #875127 #2D8727 #275D87
split-complementary
#812787 #5D8727 #278751
monochromatic
#260C28 #541958 #812787 #AE35B6 #C859CF

Accessibility & contrast

On white

8.16
#812787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#812787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812787
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812787#FFFFFF#000000##FFFFFF
##8127871.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10488A
Deuteranopia (green-blind)
#3A5385
Tritanopia (blue-blind)
#843654
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #812787;
/* rgb */ color: rgb(129, 39, 135);
/* oklch */ color: oklch(45.0% 0.169 325.2);
Tailwind
colors: {
  custom: {
    50: '#a96aaa',
    500: '#812787',
    950: '#000000',
  },
}
SCSS
$custom: #812787;
$custom-light: #a96aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#812787",
  "rgb": {
    "r": 129,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 296.25,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45048,
    "c": 0.16863,
    "h": 325.2
  },
  "luminance": 0.07867
}

Semantic roles & 50–950 ramp

primary
#812787
secondary
#5CB456
accent
#DF4953
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #812787

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

Preview Lab → · Contrast checker → · Palette generator →

#812787 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva