#831B9F#831B9F

#831B9F is a mid, highly saturated purple. Relative luminance 0.081; OKLCH L 46.0% C 0.202 H 317.6°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#831B9F
RGBrgb(131, 27, 159)
HSLhsl(287, 71%, 36%)
HSVhsv(287, 83%, 62%)
CMYKcmyk(17.6%, 83%, 0%, 37.6%)
CIE-LABlab(34.22, 59.68, -48.46)
CIE-LCHlch(34.22, 76.87, 320.92°)
OKLaboklab(45.98% 0.1493 -0.1366)
OKLCHoklch(45.98% 0.202 317.6)
XYZxyz(16.0091, 8.1131, 33.5169)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831B9F #379F1B
analogous
#411B9F #831B9F #9F1B79
triadic
#831B9F #9F831B #1B9F83
tetradic
#831B9F #9F411B #379F1B #1B799F
square
#831B9F #9F411B #379F1B #1B799F
split-complementary
#831B9F #799F1B #1B9F41
monochromatic
#2D0936 #58126B #831B9F #AE24D3 #C353E2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##831B9F#FFFFFF#000000##FFFFFF
##831B9F1.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)
#004AA2
Deuteranopia (green-blind)
#1F539C
Tritanopia (blue-blind)
#823B5F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #831b9f;
/* rgb */ color: rgb(131, 27, 159);
/* oklch */ color: oklch(46.0% 0.202 317.6);
Tailwind
colors: {
  custom: {
    50: '#ab66bc',
    500: '#831b9f',
    950: '#000000',
  },
}
SCSS
$custom: #831b9f;
$custom-light: #ab66bc;
$custom-dark: #000000;
JSON
{
  "hex": "#831b9f",
  "rgb": {
    "r": 131,
    "g": 27,
    "b": 159
  },
  "hsl": {
    "h": 287.273,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45977,
    "c": 0.20236,
    "h": 317.6
  },
  "luminance": 0.08112
}

Semantic roles & 50–950 ramp

primary
#831B9F
secondary
#6AC551
accent
#EE3A60
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #831B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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