#831FA6#831FA6

#831FA6 is a mid, highly saturated purple. Relative luminance 0.086; OKLCH L 46.8% C 0.205 H 315.1°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#831FA6
RGBrgb(131, 31, 166)
HSLhsl(284, 69%, 39%)
HSVhsv(284, 81%, 65%)
CMYKcmyk(21.1%, 81.3%, 0%, 34.9%)
CIE-LABlab(35.12, 59.87, -51.22)
CIE-LCHlch(35.12, 78.80, 319.45°)
OKLaboklab(46.77% 0.1451 -0.1447)
OKLCHoklch(46.77% 0.205 315.1)
XYZxyz(16.7319, 8.5591, 36.8397)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831FA6 #42A61F
analogous
#3F1FA6 #831FA6 #A61F85
triadic
#831FA6 #A6831F #1FA683
tetradic
#831FA6 #A63F1F #42A61F #1F85A6
square
#831FA6 #A63F1F #42A61F #1F85A6
split-complementary
#831FA6 #85A61F #1FA63F
monochromatic
#320C3F #5A1572 #831FA6 #AB2BD7 #BF5EE1

Accessibility & contrast

On white

7.74
#831FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#831FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831FA6
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831FA6#FFFFFF#000000##FFFFFF
##831FA61.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAA
Deuteranopia (green-blind)
#1655A3
Tritanopia (blue-blind)
#804064
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #831fa6;
/* rgb */ color: rgb(131, 31, 166);
/* oklch */ color: oklch(46.8% 0.205 315.1);
Tailwind
colors: {
  custom: {
    50: '#ac68c1',
    500: '#831fa6',
    950: '#000000',
  },
}
SCSS
$custom: #831fa6;
$custom-light: #ac68c1;
$custom-dark: #000000;
JSON
{
  "hex": "#831fa6",
  "rgb": {
    "r": 131,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 284.444,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4677,
    "c": 0.20489,
    "h": 315.1
  },
  "luminance": 0.08558
}

Semantic roles & 50–950 ramp

primary
#831FA6
secondary
#77C55B
accent
#EB3C6A
background
#FBF6FC
surface
#F6EBF8
border
#D0C6D1
text
#110712
muted
#807A81

Preview Lab

Preview with #831FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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