#812899#812899

#812899 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.3% C 0.183 H 318.1°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#812899
RGBrgb(129, 40, 153)
HSLhsl(287, 59%, 38%)
HSVhsv(287, 74%, 60%)
CMYKcmyk(15.7%, 73.9%, 0%, 40%)
CIE-LABlab(34.97, 53.81, -43.61)
CIE-LCHlch(34.97, 69.27, 320.98°)
OKLaboklab(46.32% 0.1366 -0.1225)
OKLCHoklch(46.32% 0.183 318.1)
XYZxyz(15.5610, 8.4853, 30.9490)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812899 #409928
analogous
#492899 #812899 #992878
triadic
#812899 #998128 #289981
tetradic
#812899 #994928 #409928 #287899
square
#812899 #994928 #409928 #287899
split-complementary
#812899 #789928 #289949
monochromatic
#2F0F38 #581B68 #812899 #AA35CA #BE65D7

Accessibility & contrast

On white

7.79
#812899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#812899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812899
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812899#FFFFFF#000000##FFFFFF
##8128991.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9C
Deuteranopia (green-blind)
#2D5596
Tritanopia (blue-blind)
#803F5E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #812899;
/* rgb */ color: rgb(129, 40, 153);
/* oklch */ color: oklch(46.3% 0.183 318.1);
Tailwind
colors: {
  custom: {
    50: '#a96bb8',
    500: '#812899',
    950: '#000000',
  },
}
SCSS
$custom: #812899;
$custom-light: #a96bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#812899",
  "rgb": {
    "r": 129,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 287.257,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.46316,
    "c": 0.18347,
    "h": 318.1
  },
  "luminance": 0.08485
}

Semantic roles & 50–950 ramp

primary
#812899
secondary
#74BD60
accent
#E24667
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #812899

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

Preview Lab → · Contrast checker → · Palette generator →

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