#831E9D#831E9D

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

Color values

HEX#831E9D
RGBrgb(131, 30, 157)
HSLhsl(288, 68%, 37%)
HSVhsv(288, 81%, 62%)
CMYKcmyk(16.6%, 80.9%, 0%, 38.4%)
CIE-LABlab(34.37, 58.43, -46.99)
CIE-LCHlch(34.37, 74.98, 321.19°)
OKLaboklab(46.04% 0.1475 -0.1323)
OKLCHoklch(46.04% 0.198 318.1)
XYZxyz(15.9093, 8.1889, 32.6344)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831E9D #389D1E
analogous
#441E9D #831E9D #9D1E77
triadic
#831E9D #9D831E #1E9D83
tetradic
#831E9D #9D441E #389D1E #1E779D
square
#831E9D #9D441E #389D1E #1E779D
split-complementary
#831E9D #779D1E #1E9D44
monochromatic
#2D0A36 #58146A #831E9D #AE28D0 #C357DF

Accessibility & contrast

On white

7.96
#831E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#831E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831E9D
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831E9D#FFFFFF#000000##FFFFFF
##831E9D1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA0
Deuteranopia (green-blind)
#24549A
Tritanopia (blue-blind)
#823B5E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #831e9d;
/* rgb */ color: rgb(131, 30, 157);
/* oklch */ color: oklch(46.0% 0.198 318.1);
Tailwind
colors: {
  custom: {
    50: '#ab67bb',
    500: '#831e9d',
    950: '#000000',
  },
}
SCSS
$custom: #831e9d;
$custom-light: #ab67bb;
$custom-dark: #000000;
JSON
{
  "hex": "#831e9d",
  "rgb": {
    "r": 131,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 287.717,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46041,
    "c": 0.1981,
    "h": 318.1
  },
  "luminance": 0.08188
}

Semantic roles & 50–950 ramp

primary
#831E9D
secondary
#6BC254
accent
#EB3D61
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #831E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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