#831F9B#831F9B

#831F9B is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.0% C 0.195 H 318.7°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#831F9B
RGBrgb(131, 31, 155)
HSLhsl(288, 67%, 36%)
HSVhsv(288, 80%, 61%)
CMYKcmyk(15.5%, 80%, 0%, 39.2%)
CIE-LABlab(34.34, 57.74, -45.83)
CIE-LCHlch(34.34, 73.72, 321.56°)
OKLaboklab(45.97% 0.147 -0.1289)
OKLCHoklch(45.97% 0.195 318.7)
XYZxyz(15.7657, 8.1726, 31.7510)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831F9B #379B1F
analogous
#451F9B #831F9B #9B1F75
triadic
#831F9B #9B831F #1F9B83
tetradic
#831F9B #9B451F #379B1F #1F759B
square
#831F9B #9B451F #379B1F #1F759B
split-complementary
#831F9B #759B1F #1F9B45
monochromatic
#2D0B35 #581568 #831F9B #AE29CE #C357DD

Accessibility & contrast

On white

7.97
#831F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#831F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831F9B
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831F9B#FFFFFF#000000##FFFFFF
##831F9B1.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#275498
Tritanopia (blue-blind)
#833B5D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #831f9b;
/* rgb */ color: rgb(131, 31, 155);
/* oklch */ color: oklch(46.0% 0.195 318.7);
Tailwind
colors: {
  custom: {
    50: '#ab68b9',
    500: '#831f9b',
    950: '#000000',
  },
}
SCSS
$custom: #831f9b;
$custom-light: #ab68b9;
$custom-dark: #000000;
JSON
{
  "hex": "#831f9b",
  "rgb": {
    "r": 131,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 288.387,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45974,
    "c": 0.19547,
    "h": 318.7
  },
  "luminance": 0.08172
}

Semantic roles & 50–950 ramp

primary
#831F9B
secondary
#6AC155
accent
#EA3E5F
background
#FAF6FB
surface
#F5EBF6
border
#CFC6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #831F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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