#831EA1#831EA1

#831EA1 is a mid, highly saturated purple. Relative luminance 0.083; OKLCH L 46.3% C 0.201 H 316.7°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#831EA1
RGBrgb(131, 30, 161)
HSLhsl(286, 69%, 37%)
HSVhsv(286, 81%, 63%)
CMYKcmyk(18.6%, 81.4%, 0%, 36.9%)
CIE-LABlab(34.66, 59.20, -48.96)
CIE-LCHlch(34.66, 76.82, 320.41°)
OKLaboklab(46.33% 0.1468 -0.1381)
OKLCHoklch(46.33% 0.201 316.7)
XYZxyz(16.2564, 8.3278, 34.4624)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831EA1 #3CA11E
analogous
#421EA1 #831EA1 #A11E7D
triadic
#831EA1 #A1831E #1EA183
tetradic
#831EA1 #A1421E #3CA11E #1E7DA1
square
#831EA1 #A1421E #3CA11E #1E7DA1
split-complementary
#831EA1 #7DA11E #1EA142
monochromatic
#2F0B3A #59146D #831EA1 #AD28D5 #C159E0

Accessibility & contrast

On white

7.88
#831EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#831EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831EA1
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831EA1#FFFFFF#000000##FFFFFF
##831EA11.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA4
Deuteranopia (green-blind)
#1E549E
Tritanopia (blue-blind)
#813D61
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #831ea1;
/* rgb */ color: rgb(131, 30, 161);
/* oklch */ color: oklch(46.3% 0.201 316.7);
Tailwind
colors: {
  custom: {
    50: '#ab68be',
    500: '#831ea1',
    950: '#000000',
  },
}
SCSS
$custom: #831ea1;
$custom-light: #ab68be;
$custom-dark: #000000;
JSON
{
  "hex": "#831ea1",
  "rgb": {
    "r": 131,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 286.26,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.4633,
    "c": 0.20149,
    "h": 316.7
  },
  "luminance": 0.08327
}

Semantic roles & 50–950 ramp

primary
#831EA1
secondary
#70C457
accent
#EB3C64
background
#FBF6FB
surface
#F6EBF7
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #831EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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