#812988#812988

#812988 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.3% C 0.167 H 324.7°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#812988
RGBrgb(129, 41, 136)
HSLhsl(296, 54%, 35%)
HSVhsv(296, 70%, 53%)
CMYKcmyk(5.1%, 69.9%, 0%, 46.7%)
CIE-LABlab(34.05, 50.14, -34.67)
CIE-LCHlch(34.05, 60.96, 325.34°)
OKLaboklab(45.31% 0.1364 -0.0964)
OKLCHoklch(45.31% 0.167 324.7)
XYZxyz(14.2898, 8.0315, 24.0853)
Luminance0.0803 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812988 #308829
analogous
#522988 #812988 #882960
triadic
#812988 #888129 #298881
tetradic
#812988 #885229 #308829 #296088
square
#812988 #885229 #308829 #296088
split-complementary
#812988 #608829 #298852
monochromatic
#280D2A #541B59 #812988 #AE37B7 #C65DCE

Accessibility & contrast

On white

8.06
#812988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#812988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812988
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812988#FFFFFF#000000##FFFFFF
##8129881.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13498B
Deuteranopia (green-blind)
#3B5486
Tritanopia (blue-blind)
#843855
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #812988;
/* rgb */ color: rgb(129, 41, 136);
/* oklch */ color: oklch(45.3% 0.167 324.7);
Tailwind
colors: {
  custom: {
    50: '#a96bab',
    500: '#812988',
    950: '#000000',
  },
}
SCSS
$custom: #812988;
$custom-light: #a96bab;
$custom-dark: #000000;
JSON
{
  "hex": "#812988",
  "rgb": {
    "r": 129,
    "g": 41,
    "b": 136
  },
  "hsl": {
    "h": 295.579,
    "s": 53.672,
    "l": 34.706
  },
  "oklch": {
    "l": 0.45313,
    "c": 0.16697,
    "h": 324.7
  },
  "luminance": 0.08031
}

Semantic roles & 50–950 ramp

primary
#812988
secondary
#60B459
accent
#DD4B56
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #812988

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

Preview Lab → · Contrast checker → · Palette generator →

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