#812D99#812D99

#812D99 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.8% C 0.177 H 317.8°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#812D99
RGBrgb(129, 45, 153)
HSLhsl(287, 55%, 39%)
HSVhsv(287, 71%, 60%)
CMYKcmyk(15.7%, 70.6%, 0%, 40%)
CIE-LABlab(35.68, 51.80, -42.48)
CIE-LCHlch(35.68, 66.99, 320.65°)
OKLaboklab(46.82% 0.1313 -0.1192)
OKLCHoklch(46.82% 0.177 317.8)
XYZxyz(15.7406, 8.8445, 31.0088)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812D99 #45992D
analogous
#4B2D99 #812D99 #992D7B
triadic
#812D99 #99812D #2D9981
tetradic
#812D99 #994B2D #45992D #2D7B99
square
#812D99 #994B2D #45992D #2D7B99
split-complementary
#812D99 #7B992D #2D994B
monochromatic
#31113A #591F6A #812D99 #A83DC6 #BD6CD4

Accessibility & contrast

On white

7.58
#812D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#812D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812D99
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812D99#FFFFFF#000000##FFFFFF
##812D991.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9C
Deuteranopia (green-blind)
#315796
Tritanopia (blue-blind)
#804260
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #812d99;
/* rgb */ color: rgb(129, 45, 153);
/* oklch */ color: oklch(46.8% 0.177 317.8);
Tailwind
colors: {
  custom: {
    50: '#a96db8',
    500: '#812d99',
    950: '#000000',
  },
}
SCSS
$custom: #812d99;
$custom-light: #a96db8;
$custom-dark: #000000;
JSON
{
  "hex": "#812d99",
  "rgb": {
    "r": 129,
    "g": 45,
    "b": 153
  },
  "hsl": {
    "h": 286.667,
    "s": 54.545,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46822,
    "c": 0.17737,
    "h": 317.8
  },
  "luminance": 0.08844
}

Semantic roles & 50–950 ramp

primary
#812D99
secondary
#7ABB67
accent
#DE4A6B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #812D99

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

Preview Lab → · Contrast checker → · Palette generator →

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