#812598#812598

#812598 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.0% C 0.186 H 318.6°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#812598
RGBrgb(129, 37, 152)
HSLhsl(288, 61%, 37%)
HSVhsv(288, 76%, 60%)
CMYKcmyk(15.1%, 75.7%, 0%, 40.4%)
CIE-LABlab(34.51, 54.74, -43.74)
CIE-LCHlch(34.51, 70.07, 321.37°)
OKLaboklab(45.97% 0.1396 -0.1229)
OKLCHoklch(45.97% 0.186 318.6)
XYZxyz(15.3816, 8.2580, 30.4834)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812598 #3C9825
analogous
#482598 #812598 #982576
triadic
#812598 #988125 #259881
tetradic
#812598 #984825 #3C9825 #257698
square
#812598 #984825 #3C9825 #257698
split-complementary
#812598 #769825 #259848
monochromatic
#2D0D36 #571967 #812598 #AB31C9 #C05FD8

Accessibility & contrast

On white

7.92
#812598 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#812598 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812598
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812598#FFFFFF#000000##FFFFFF
##8125981.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #812598;
/* rgb */ color: rgb(129, 37, 152);
/* oklch */ color: oklch(46.0% 0.186 318.6);
Tailwind
colors: {
  custom: {
    50: '#a96ab7',
    500: '#812598',
    950: '#000000',
  },
}
SCSS
$custom: #812598;
$custom-light: #a96ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#812598",
  "rgb": {
    "r": 129,
    "g": 37,
    "b": 152
  },
  "hsl": {
    "h": 288,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45968,
    "c": 0.18596,
    "h": 318.6
  },
  "luminance": 0.08257
}

Semantic roles & 50–950 ramp

primary
#812598
secondary
#6FBD5C
accent
#E44464
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #812598

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

Preview Lab → · Contrast checker → · Palette generator →

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