#831EA8#831EA8

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

Color values

HEX#831EA8
RGBrgb(131, 30, 168)
HSLhsl(284, 70%, 39%)
HSVhsv(284, 82%, 66%)
CMYKcmyk(22%, 82.1%, 0%, 34.1%)
CIE-LABlab(35.17, 60.57, -52.35)
CIE-LCHlch(35.17, 80.06, 319.16°)
OKLaboklab(46.85% 0.1454 -0.148)
OKLCHoklch(46.85% 0.207 314.5)
XYZxyz(16.8910, 8.5816, 37.8049)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831EA8 #43A81E
analogous
#3E1EA8 #831EA8 #A81E88
triadic
#831EA8 #A8831E #1EA883
tetradic
#831EA8 #A83E1E #43A81E #1E88A8
square
#831EA8 #A83E1E #43A81E #1E88A8
split-complementary
#831EA8 #88A81E #1EA83E
monochromatic
#320B40 #5B1574 #831EA8 #AA2AD9 #BF5EE2

Accessibility & contrast

On white

7.73
#831EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#831EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831EA8
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831EA8#FFFFFF#000000##FFFFFF
##831EA81.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#1055A5
Tritanopia (blue-blind)
#7F4165
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #831ea8;
/* rgb */ color: rgb(131, 30, 168);
/* oklch */ color: oklch(46.8% 0.207 314.5);
Tailwind
colors: {
  custom: {
    50: '#ac68c3',
    500: '#831ea8',
    950: '#000000',
  },
}
SCSS
$custom: #831ea8;
$custom-light: #ac68c3;
$custom-dark: #000000;
JSON
{
  "hex": "#831ea8",
  "rgb": {
    "r": 131,
    "g": 30,
    "b": 168
  },
  "hsl": {
    "h": 283.913,
    "s": 69.697,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46848,
    "c": 0.20747,
    "h": 314.5
  },
  "luminance": 0.08581
}

Semantic roles & 50–950 ramp

primary
#831EA8
secondary
#78C75B
accent
#ED3B6B
background
#FBF6FC
surface
#F6EBF8
border
#D0C6D1
text
#110712
muted
#807A81

Preview Lab

Preview with #831EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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