#812399#812399

#812399 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.9% C 0.189 H 318.4°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#812399
RGBrgb(129, 35, 153)
HSLhsl(288, 63%, 37%)
HSVhsv(288, 77%, 60%)
CMYKcmyk(15.7%, 77.1%, 0%, 40%)
CIE-LABlab(34.33, 55.64, -44.64)
CIE-LCHlch(34.33, 71.34, 321.26°)
OKLaboklab(45.86% 0.1413 -0.1255)
OKLCHoklch(45.86% 0.189 318.4)
XYZxyz(15.4033, 8.1698, 30.8964)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812399 #3B9923
analogous
#462399 #812399 #992376
triadic
#812399 #998123 #239981
tetradic
#812399 #994623 #3B9923 #237699
square
#812399 #994623 #3B9923 #237699
split-complementary
#812399 #769923 #239946
monochromatic
#2D0C35 #571867 #812399 #AB2ECB #C05DDA

Accessibility & contrast

On white

7.97
#812399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#812399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812399
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812399#FFFFFF#000000##FFFFFF
##8123991.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9C
Deuteranopia (green-blind)
#295496
Tritanopia (blue-blind)
#803C5D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #812399;
/* rgb */ color: rgb(129, 35, 153);
/* oklch */ color: oklch(45.9% 0.189 318.4);
Tailwind
colors: {
  custom: {
    50: '#a969b8',
    500: '#812399',
    950: '#000000',
  },
}
SCSS
$custom: #812399;
$custom-light: #a969b8;
$custom-dark: #000000;
JSON
{
  "hex": "#812399",
  "rgb": {
    "r": 129,
    "g": 35,
    "b": 153
  },
  "hsl": {
    "h": 287.797,
    "s": 62.766,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45862,
    "c": 0.189,
    "h": 318.4
  },
  "luminance": 0.08169
}

Semantic roles & 50–950 ramp

primary
#812399
secondary
#6EBE59
accent
#E64263
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #812399

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

Preview Lab → · Contrast checker → · Palette generator →

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