#831BA1#831BA1

#831BA1 is a mid, highly saturated purple. Relative luminance 0.082; OKLCH L 46.1% C 0.204 H 316.9°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#831BA1
RGBrgb(131, 27, 161)
HSLhsl(287, 71%, 37%)
HSVhsv(287, 83%, 63%)
CMYKcmyk(18.6%, 83.2%, 0%, 36.9%)
CIE-LABlab(34.36, 60.06, -49.44)
CIE-LCHlch(34.36, 77.79, 320.54°)
OKLaboklab(46.12% 0.149 -0.1394)
OKLCHoklch(46.12% 0.204 316.9)
XYZxyz(16.1841, 8.1831, 34.4383)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831BA1 #39A11B
analogous
#401BA1 #831BA1 #A11B7C
triadic
#831BA1 #A1831B #1BA183
tetradic
#831BA1 #A1401B #39A11B #1B7CA1
square
#831BA1 #A1401B #39A11B #1B7CA1
split-complementary
#831BA1 #7CA11B #1BA140
monochromatic
#2E0938 #58126D #831BA1 #AE24D5 #C254E2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##831BA1#FFFFFF#000000##FFFFFF
##831BA11.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#1C549E
Tritanopia (blue-blind)
#813C60
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #831ba1;
/* rgb */ color: rgb(131, 27, 161);
/* oklch */ color: oklch(46.1% 0.204 316.9);
Tailwind
colors: {
  custom: {
    50: '#ab67be',
    500: '#831ba1',
    950: '#000000',
  },
}
SCSS
$custom: #831ba1;
$custom-light: #ab67be;
$custom-dark: #000000;
JSON
{
  "hex": "#831ba1",
  "rgb": {
    "r": 131,
    "g": 27,
    "b": 161
  },
  "hsl": {
    "h": 286.567,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.46123,
    "c": 0.20403,
    "h": 316.9
  },
  "luminance": 0.08182
}

Semantic roles & 50–950 ramp

primary
#831BA1
secondary
#6CC552
accent
#EE3A62
background
#FBF6FB
surface
#F6EBF7
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #831BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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