#812398#812398

#812398 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.188 H 318.8°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#812398
RGBrgb(129, 35, 152)
HSLhsl(288, 63%, 37%)
HSVhsv(288, 77%, 60%)
CMYKcmyk(15.1%, 77%, 0%, 40.4%)
CIE-LABlab(34.27, 55.45, -44.14)
CIE-LCHlch(34.27, 70.87, 321.48°)
OKLaboklab(45.79% 0.1415 -0.124)
OKLCHoklch(45.79% 0.188 318.8)
XYZxyz(15.3210, 8.1369, 30.4632)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812398 #3A9823
analogous
#472398 #812398 #982375
triadic
#812398 #988123 #239881
tetradic
#812398 #984723 #3A9823 #237598
square
#812398 #984723 #3A9823 #237598
split-complementary
#812398 #759823 #239847
monochromatic
#2D0C35 #571866 #812398 #AB2ECA #C15CD9

Accessibility & contrast

On white

7.99
#812398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #812398
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812398#FFFFFF#000000##FFFFFF
##8123981.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #812398;
/* rgb */ color: rgb(129, 35, 152);
/* oklch */ color: oklch(45.8% 0.188 318.8);
Tailwind
colors: {
  custom: {
    50: '#a969b7',
    500: '#812398',
    950: '#000000',
  },
}
SCSS
$custom: #812398;
$custom-light: #a969b7;
$custom-dark: #000000;
JSON
{
  "hex": "#812398",
  "rgb": {
    "r": 129,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 288.205,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45793,
    "c": 0.18812,
    "h": 318.8
  },
  "luminance": 0.08136
}

Semantic roles & 50–950 ramp

primary
#812398
secondary
#6DBE59
accent
#E64262
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #812398

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

Preview Lab → · Contrast checker → · Palette generator →

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