#831FA1#831FA1

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

Color values

HEX#831FA1
RGBrgb(131, 31, 161)
HSLhsl(286, 68%, 38%)
HSVhsv(286, 81%, 63%)
CMYKcmyk(18.6%, 80.7%, 0%, 36.9%)
CIE-LABlab(34.76, 58.90, -48.79)
CIE-LCHlch(34.76, 76.48, 320.36°)
OKLaboklab(46.4% 0.146 -0.1376)
OKLCHoklch(46.4% 0.201 316.7)
XYZxyz(16.2821, 8.3792, 34.4710)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831FA1 #3DA11F
analogous
#421FA1 #831FA1 #A11F7E
triadic
#831FA1 #A1831F #1FA183
tetradic
#831FA1 #A1421F #3DA11F #1F7EA1
square
#831FA1 #A1421F #3DA11F #1F7EA1
split-complementary
#831FA1 #7EA11F #1FA142
monochromatic
#2F0B3A #59156E #831FA1 #AD29D4 #C15BDF

Accessibility & contrast

On white

7.85
#831FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#831FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831FA1
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831FA1#FFFFFF#000000##FFFFFF
##831FA11.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA4
Deuteranopia (green-blind)
#1F549E
Tritanopia (blue-blind)
#813E61
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #831fa1;
/* rgb */ color: rgb(131, 31, 161);
/* oklch */ color: oklch(46.4% 0.201 316.7);
Tailwind
colors: {
  custom: {
    50: '#ab68be',
    500: '#831fa1',
    950: '#000000',
  },
}
SCSS
$custom: #831fa1;
$custom-light: #ab68be;
$custom-dark: #000000;
JSON
{
  "hex": "#831fa1",
  "rgb": {
    "r": 131,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 286.154,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.46403,
    "c": 0.2006,
    "h": 316.7
  },
  "luminance": 0.08378
}

Semantic roles & 50–950 ramp

primary
#831FA1
secondary
#71C458
accent
#EB3D65
background
#FBF6FB
surface
#F6EBF7
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #831FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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