#831B87#831B87

#831B87 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.3% C 0.183 H 326.4°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#831B87
RGBrgb(131, 27, 135)
HSLhsl(298, 67%, 32%)
HSVhsv(298, 80%, 53%)
CMYKcmyk(3%, 80%, 0%, 47.1%)
CIE-LABlab(32.61, 55.31, -36.31)
CIE-LCHlch(32.61, 66.17, 326.71°)
OKLaboklab(44.33% 0.1523 -0.101)
OKLCHoklch(44.33% 0.183 326.4)
XYZxyz(14.1249, 7.3594, 23.5935)
Luminance0.0736 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831B87 #1F871B
analogous
#4D1B87 #831B87 #871B55
triadic
#831B87 #87831B #1B8783
tetradic
#831B87 #874D1B #1F871B #1B5587
square
#831B87 #874D1B #1F871B #1B5587
split-complementary
#831B87 #55871B #1B874D
monochromatic
#200721 #521154 #831B87 #B425BA #D443D9

Accessibility & contrast

On white

8.50
#831B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#831B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831B87
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831B87#FFFFFF#000000##FFFFFF
##831B871.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#375184
Tritanopia (blue-blind)
#872F51
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #831b87;
/* rgb */ color: rgb(131, 27, 135);
/* oklch */ color: oklch(44.3% 0.183 326.4);
Tailwind
colors: {
  custom: {
    50: '#ab65aa',
    500: '#831b87',
    950: '#000000',
  },
}
SCSS
$custom: #831b87;
$custom-light: #ab65aa;
$custom-dark: #000000;
JSON
{
  "hex": "#831b87",
  "rgb": {
    "r": 131,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 297.778,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.44332,
    "c": 0.18275,
    "h": 326.4
  },
  "luminance": 0.07358
}

Semantic roles & 50–950 ramp

primary
#831B87
secondary
#48BA44
accent
#EA3E45
background
#FAF6FA
surface
#F5EBF4
border
#CFC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #831B87

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

Preview Lab → · Contrast checker → · Palette generator →

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