#831B96#831B96

#831B96 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.3% C 0.195 H 320.7°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#831B96
RGBrgb(131, 27, 150)
HSLhsl(291, 69%, 35%)
HSVhsv(291, 82%, 59%)
CMYKcmyk(12.7%, 82%, 0%, 41.2%)
CIE-LABlab(33.59, 57.99, -43.99)
CIE-LCHlch(33.59, 72.79, 322.81°)
OKLaboklab(45.34% 0.1508 -0.1235)
OKLCHoklch(45.34% 0.195 320.7)
XYZxyz(15.2564, 7.8120, 29.5525)
Luminance0.0781 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831B96 #2E961B
analogous
#461B96 #831B96 #961B6B
triadic
#831B96 #96831B #1B9683
tetradic
#831B96 #96461B #2E961B #1B6B96
square
#831B96 #96461B #2E961B #1B6B96
split-complementary
#831B96 #6B961B #1B9646
monochromatic
#28082E #561262 #831B96 #B024CA #C84DDF

Accessibility & contrast

On white

8.20
#831B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#831B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831B96
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831B96#FFFFFF#000000##FFFFFF
##831B961.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004899
Deuteranopia (green-blind)
#2A5293
Tritanopia (blue-blind)
#84365A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #831b96;
/* rgb */ color: rgb(131, 27, 150);
/* oklch */ color: oklch(45.3% 0.195 320.7);
Tailwind
colors: {
  custom: {
    50: '#ab66b5',
    500: '#831b96',
    950: '#000000',
  },
}
SCSS
$custom: #831b96;
$custom-light: #ab66b5;
$custom-dark: #000000;
JSON
{
  "hex": "#831b96",
  "rgb": {
    "r": 131,
    "g": 27,
    "b": 150
  },
  "hsl": {
    "h": 290.732,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.45335,
    "c": 0.1949,
    "h": 320.7
  },
  "luminance": 0.07811
}

Semantic roles & 50–950 ramp

primary
#831B96
secondary
#5EC14C
accent
#EC3B57
background
#FAF6FB
surface
#F5EBF6
border
#CFC6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #831B96

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

Preview Lab → · Contrast checker → · Palette generator →

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