#812397#812397

#812397 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.7% C 0.187 H 319.1°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#812397
RGBrgb(129, 35, 151)
HSLhsl(289, 62%, 36%)
HSVhsv(289, 77%, 59%)
CMYKcmyk(14.6%, 76.8%, 0%, 40.8%)
CIE-LABlab(34.20, 55.26, -43.64)
CIE-LCHlch(34.20, 70.41, 321.70°)
OKLaboklab(45.72% 0.1416 -0.1225)
OKLCHoklch(45.72% 0.187 319.1)
XYZxyz(15.2395, 8.1043, 30.0337)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812397 #399723
analogous
#472397 #812397 #972373
triadic
#812397 #978123 #239781
tetradic
#812397 #974723 #399723 #237397
square
#812397 #974723 #399723 #237397
split-complementary
#812397 #739723 #239747
monochromatic
#2C0C34 #571765 #812397 #AB2FC9 #C15BD9

Accessibility & contrast

On white

8.01
#812397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#812397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812397
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812397#FFFFFF#000000##FFFFFF
##8123971.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #812397;
/* rgb */ color: rgb(129, 35, 151);
/* oklch */ color: oklch(45.7% 0.187 319.1);
Tailwind
colors: {
  custom: {
    50: '#a969b6',
    500: '#812397',
    950: '#000000',
  },
}
SCSS
$custom: #812397;
$custom-light: #a969b6;
$custom-dark: #000000;
JSON
{
  "hex": "#812397",
  "rgb": {
    "r": 129,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 288.621,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45723,
    "c": 0.18724,
    "h": 319.1
  },
  "luminance": 0.08104
}

Semantic roles & 50–950 ramp

primary
#812397
secondary
#6BBE58
accent
#E54261
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #812397

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

Preview Lab → · Contrast checker → · Palette generator →

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