#831EA7#831EA7

#831EA7 is a mid, highly saturated purple. Relative luminance 0.085; OKLCH L 46.8% C 0.207 H 314.8°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#831EA7
RGBrgb(131, 30, 167)
HSLhsl(284, 70%, 39%)
HSVhsv(284, 82%, 65%)
CMYKcmyk(21.6%, 82%, 0%, 34.5%)
CIE-LABlab(35.09, 60.37, -51.87)
CIE-LCHlch(35.09, 79.59, 319.33°)
OKLaboklab(46.77% 0.1456 -0.1466)
OKLCHoklch(46.77% 0.207 314.8)
XYZxyz(16.7982, 8.5445, 37.3161)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831EA7 #42A71E
analogous
#3F1EA7 #831EA7 #A71E86
triadic
#831EA7 #A7831E #1EA783
tetradic
#831EA7 #A73F1E #42A71E #1E86A7
square
#831EA7 #A73F1E #42A71E #1E86A7
split-complementary
#831EA7 #86A71E #1EA73F
monochromatic
#320B3F #5A1573 #831EA7 #AB2AD9 #BF5DE2

Accessibility & contrast

On white

7.75
#831EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #831EA7
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831EA7#FFFFFF#000000##FFFFFF
##831EA71.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAB
Deuteranopia (green-blind)
#1355A4
Tritanopia (blue-blind)
#804064
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #831ea7;
/* rgb */ color: rgb(131, 30, 167);
/* oklch */ color: oklch(46.8% 0.207 314.8);
Tailwind
colors: {
  custom: {
    50: '#ac68c2',
    500: '#831ea7',
    950: '#000000',
  },
}
SCSS
$custom: #831ea7;
$custom-light: #ac68c2;
$custom-dark: #000000;
JSON
{
  "hex": "#831ea7",
  "rgb": {
    "r": 131,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 284.234,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46773,
    "c": 0.20662,
    "h": 314.8
  },
  "luminance": 0.08544
}

Semantic roles & 50–950 ramp

primary
#831EA7
secondary
#77C65B
accent
#EC3B6A
background
#FBF6FC
surface
#F6EBF8
border
#D0C6D1
text
#110712
muted
#807A81

Preview Lab

Preview with #831EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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