#831E9C#831E9C

#831E9C is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.0% C 0.197 H 318.4°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#831E9C
RGBrgb(131, 30, 156)
HSLhsl(288, 68%, 36%)
HSVhsv(288, 81%, 61%)
CMYKcmyk(16%, 80.8%, 0%, 38.8%)
CIE-LABlab(34.30, 58.24, -46.50)
CIE-LCHlch(34.30, 74.52, 321.39°)
OKLaboklab(45.97% 0.1476 -0.1308)
OKLCHoklch(45.97% 0.197 318.4)
XYZxyz(15.8243, 8.1549, 32.1866)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831E9C #379C1E
analogous
#441E9C #831E9C #9C1E76
triadic
#831E9C #9C831E #1E9C83
tetradic
#831E9C #9C441E #379C1E #1E769C
square
#831E9C #9C441E #379C1E #1E769C
split-complementary
#831E9C #769C1E #1E9C44
monochromatic
#2D0A35 #581469 #831E9C #AE28CF #C356DE

Accessibility & contrast

On white

7.98
#831E9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#831E9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831E9C
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831E9C#FFFFFF#000000##FFFFFF
##831E9C1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9F
Deuteranopia (green-blind)
#255499
Tritanopia (blue-blind)
#823B5E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #831e9c;
/* rgb */ color: rgb(131, 30, 156);
/* oklch */ color: oklch(46.0% 0.197 318.4);
Tailwind
colors: {
  custom: {
    50: '#ab67ba',
    500: '#831e9c',
    950: '#000000',
  },
}
SCSS
$custom: #831e9c;
$custom-light: #ab67ba;
$custom-dark: #000000;
JSON
{
  "hex": "#831e9c",
  "rgb": {
    "r": 131,
    "g": 30,
    "b": 156
  },
  "hsl": {
    "h": 288.095,
    "s": 67.742,
    "l": 36.471
  },
  "oklch": {
    "l": 0.4597,
    "c": 0.19725,
    "h": 318.4
  },
  "luminance": 0.08154
}

Semantic roles & 50–950 ramp

primary
#831E9C
secondary
#6AC254
accent
#EB3D60
background
#FAF6FB
surface
#F5EBF6
border
#CFC6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #831E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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