#812497#812497

#812497 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.8% C 0.186 H 319.1°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#812497
RGBrgb(129, 36, 151)
HSLhsl(289, 61%, 37%)
HSVhsv(289, 76%, 59%)
CMYKcmyk(14.6%, 76.2%, 0%, 40.8%)
CIE-LABlab(34.32, 54.90, -43.44)
CIE-LCHlch(34.32, 70.01, 321.65°)
OKLaboklab(45.81% 0.1407 -0.122)
OKLCHoklch(45.81% 0.186 319.1)
XYZxyz(15.2693, 8.1640, 30.0437)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812497 #3A9724
analogous
#482497 #812497 #972474
triadic
#812497 #978124 #249781
tetradic
#812497 #974824 #3A9724 #247497
square
#812497 #974824 #3A9724 #247497
split-complementary
#812497 #749724 #249748
monochromatic
#2D0C34 #571866 #812497 #AB30C8 #C15DD8

Accessibility & contrast

On white

7.98
#812497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #812497
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812497#FFFFFF#000000##FFFFFF
##8124971.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#2C5494
Tritanopia (blue-blind)
#813C5C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #812497;
/* rgb */ color: rgb(129, 36, 151);
/* oklch */ color: oklch(45.8% 0.186 319.1);
Tailwind
colors: {
  custom: {
    50: '#a969b6',
    500: '#812497',
    950: '#000000',
  },
}
SCSS
$custom: #812497;
$custom-light: #a969b6;
$custom-dark: #000000;
JSON
{
  "hex": "#812497",
  "rgb": {
    "r": 129,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 288.522,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45811,
    "c": 0.18618,
    "h": 319.1
  },
  "luminance": 0.08163
}

Semantic roles & 50–950 ramp

primary
#812497
secondary
#6DBD5A
accent
#E54362
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #812497

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

Preview Lab → · Contrast checker → · Palette generator →

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