#831BA7#831BA7

#831BA7 is a mid, highly saturated purple. Relative luminance 0.084; OKLCH L 46.6% C 0.209 H 314.9°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#831BA7
RGBrgb(131, 27, 167)
HSLhsl(285, 72%, 38%)
HSVhsv(285, 84%, 65%)
CMYKcmyk(21.6%, 83.8%, 0%, 34.5%)
CIE-LABlab(34.80, 61.22, -52.34)
CIE-LCHlch(34.80, 80.54, 319.47°)
OKLaboklab(46.57% 0.1477 -0.148)
OKLCHoklch(46.57% 0.209 314.9)
XYZxyz(16.7259, 8.3998, 37.2920)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831BA7 #3FA71B
analogous
#3D1BA7 #831BA7 #A71B85
triadic
#831BA7 #A7831B #1BA783
tetradic
#831BA7 #A73D1B #3FA71B #1B85A7
square
#831BA7 #A73D1B #3FA71B #1B85A7
split-complementary
#831BA7 #85A71B #1BA73D
monochromatic
#300A3E #5A1272 #831BA7 #AC24DC #C058E4

Accessibility & contrast

On white

7.84
#831BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #831BA7
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831BA7#FFFFFF#000000##FFFFFF
##831BA71.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAB
Deuteranopia (green-blind)
#0F54A4
Tritanopia (blue-blind)
#803F63
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #831ba7;
/* rgb */ color: rgb(131, 27, 167);
/* oklch */ color: oklch(46.6% 0.209 314.9);
Tailwind
colors: {
  custom: {
    50: '#ac67c2',
    500: '#831ba7',
    950: '#000000',
  },
}
SCSS
$custom: #831ba7;
$custom-light: #ac67c2;
$custom-dark: #000000;
JSON
{
  "hex": "#831ba7",
  "rgb": {
    "r": 131,
    "g": 27,
    "b": 167
  },
  "hsl": {
    "h": 284.571,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.4657,
    "c": 0.20906,
    "h": 314.9
  },
  "luminance": 0.08399
}

Semantic roles & 50–950 ramp

primary
#831BA7
secondary
#73C856
accent
#EF3968
background
#FBF6FC
surface
#F6EBF8
border
#D0C6D1
text
#110712
muted
#807A81

Preview Lab

Preview with #831BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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