#812197#812197

#812197 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.6% C 0.189 H 319.2°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#812197
RGBrgb(129, 33, 151)
HSLhsl(289, 64%, 36%)
HSVhsv(289, 78%, 59%)
CMYKcmyk(14.6%, 78.1%, 0%, 40.8%)
CIE-LABlab(33.96, 55.94, -44.02)
CIE-LCHlch(33.96, 71.18, 321.80°)
OKLaboklab(45.56% 0.1434 -0.1236)
OKLCHoklch(45.56% 0.189 319.2)
XYZxyz(15.1823, 7.9900, 30.0147)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812197 #379721
analogous
#462197 #812197 #972172
triadic
#812197 #978121 #219781
tetradic
#812197 #974621 #379721 #217297
square
#812197 #974621 #379721 #217297
split-complementary
#812197 #729721 #219746
monochromatic
#2B0B33 #561665 #812197 #AC2CC9 #C258DA

Accessibility & contrast

On white

8.08
#812197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#812197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812197
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812197#FFFFFF#000000##FFFFFF
##8121971.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#2A5394
Tritanopia (blue-blind)
#813A5B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #812197;
/* rgb */ color: rgb(129, 33, 151);
/* oklch */ color: oklch(45.6% 0.189 319.2);
Tailwind
colors: {
  custom: {
    50: '#a968b6',
    500: '#812197',
    950: '#000000',
  },
}
SCSS
$custom: #812197;
$custom-light: #a968b6;
$custom-dark: #000000;
JSON
{
  "hex": "#812197",
  "rgb": {
    "r": 129,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 288.814,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45556,
    "c": 0.18932,
    "h": 319.2
  },
  "luminance": 0.07989
}

Semantic roles & 50–950 ramp

primary
#812197
secondary
#69BE55
accent
#E74160
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #812197

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

Preview Lab → · Contrast checker → · Palette generator →

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