#831D9A#831D9A

#831D9A is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.8% C 0.196 H 319.2°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#831D9A
RGBrgb(131, 29, 154)
HSLhsl(289, 68%, 36%)
HSVhsv(289, 81%, 60%)
CMYKcmyk(14.9%, 81.2%, 0%, 39.6%)
CIE-LABlab(34.06, 58.16, -45.67)
CIE-LCHlch(34.06, 73.95, 321.86°)
OKLaboklab(45.76% 0.1487 -0.1284)
OKLCHoklch(45.76% 0.196 319.2)
XYZxyz(15.6314, 8.0379, 31.2937)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831D9A #349A1D
analogous
#441D9A #831D9A #9A1D72
triadic
#831D9A #9A831D #1D9A83
tetradic
#831D9A #9A441D #349A1D #1D729A
square
#831D9A #9A441D #349A1D #1D729A
split-complementary
#831D9A #729A1D #1D9A44
monochromatic
#2B0A33 #571366 #831D9A #AF27CE #C553DF

Accessibility & contrast

On white

8.05
#831D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#831D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831D9A
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831D9A#FFFFFF#000000##FFFFFF
##831D9A1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9D
Deuteranopia (green-blind)
#275397
Tritanopia (blue-blind)
#83395C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #831d9a;
/* rgb */ color: rgb(131, 29, 154);
/* oklch */ color: oklch(45.8% 0.196 319.2);
Tailwind
colors: {
  custom: {
    50: '#ab67b8',
    500: '#831d9a',
    950: '#000000',
  },
}
SCSS
$custom: #831d9a;
$custom-light: #ab67b8;
$custom-dark: #000000;
JSON
{
  "hex": "#831d9a",
  "rgb": {
    "r": 131,
    "g": 29,
    "b": 154
  },
  "hsl": {
    "h": 288.96,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45756,
    "c": 0.19646,
    "h": 319.2
  },
  "luminance": 0.08037
}

Semantic roles & 50–950 ramp

primary
#831D9A
secondary
#66C251
accent
#EB3D5D
background
#FAF6FB
surface
#F5EBF6
border
#CFC6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #831D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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