#831D9C#831D9C

#831D9C is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.9% C 0.198 H 318.5°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#831D9C
RGBrgb(131, 29, 156)
HSLhsl(288, 69%, 36%)
HSVhsv(288, 81%, 61%)
CMYKcmyk(16%, 81.4%, 0%, 38.8%)
CIE-LABlab(34.20, 58.54, -46.67)
CIE-LCHlch(34.20, 74.86, 321.44°)
OKLaboklab(45.9% 0.1484 -0.1313)
OKLCHoklch(45.9% 0.198 318.5)
XYZxyz(15.7994, 8.1051, 32.1783)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831D9C #369C1D
analogous
#441D9C #831D9C #9C1D76
triadic
#831D9C #9C831D #1D9C83
tetradic
#831D9C #9C441D #369C1D #1D769C
square
#831D9C #9C441D #369C1D #1D769C
split-complementary
#831D9C #769C1D #1D9C44
monochromatic
#2C0A35 #581368 #831D9C #AE27D0 #C454DF

Accessibility & contrast

On white

8.01
#831D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#831D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##831D9C#FFFFFF#000000##FFFFFF
##831D9C1.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)
#004A9F
Deuteranopia (green-blind)
#255499
Tritanopia (blue-blind)
#823A5D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #831d9c;
/* rgb */ color: rgb(131, 29, 156);
/* oklch */ color: oklch(45.9% 0.198 318.5);
Tailwind
colors: {
  custom: {
    50: '#ab67ba',
    500: '#831d9c',
    950: '#000000',
  },
}
SCSS
$custom: #831d9c;
$custom-light: #ab67ba;
$custom-dark: #000000;
JSON
{
  "hex": "#831d9c",
  "rgb": {
    "r": 131,
    "g": 29,
    "b": 156
  },
  "hsl": {
    "h": 288.189,
    "s": 68.649,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45898,
    "c": 0.19814,
    "h": 318.5
  },
  "luminance": 0.08104
}

Semantic roles & 50–950 ramp

primary
#831D9C
secondary
#68C252
accent
#EB3C5F
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #831D9C

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

Preview Lab → · Contrast checker → · Palette generator →

#831D9C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva