#831A87#831A87

#831A87 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.3% C 0.184 H 326.5°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#831A87
RGBrgb(131, 26, 135)
HSLhsl(298, 68%, 32%)
HSVhsv(298, 81%, 53%)
CMYKcmyk(3%, 80.7%, 0%, 47.1%)
CIE-LABlab(32.51, 55.60, -36.47)
CIE-LCHlch(32.51, 66.49, 326.73°)
OKLaboklab(44.26% 0.1531 -0.1015)
OKLCHoklch(44.26% 0.184 326.5)
XYZxyz(14.1024, 7.3144, 23.5860)
Luminance0.0731 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831A87 #1E871A
analogous
#4D1A87 #831A87 #871A55
triadic
#831A87 #87831A #1A8783
tetradic
#831A87 #874D1A #1E871A #1A5587
square
#831A87 #874D1A #1E871A #1A5587
split-complementary
#831A87 #55871A #1A874D
monochromatic
#1F0620 #511054 #831A87 #B524BA #D541DA

Accessibility & contrast

On white

8.53
#831A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#831A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831A87
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831A87#FFFFFF#000000##FFFFFF
##831A871.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#365184
Tritanopia (blue-blind)
#872E51
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #831a87;
/* rgb */ color: rgb(131, 26, 135);
/* oklch */ color: oklch(44.3% 0.184 326.5);
Tailwind
colors: {
  custom: {
    50: '#ab65aa',
    500: '#831a87',
    950: '#000000',
  },
}
SCSS
$custom: #831a87;
$custom-light: #ab65aa;
$custom-dark: #000000;
JSON
{
  "hex": "#831a87",
  "rgb": {
    "r": 131,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 297.798,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.44262,
    "c": 0.18368,
    "h": 326.5
  },
  "luminance": 0.07313
}

Semantic roles & 50–950 ramp

primary
#831A87
secondary
#47BA42
accent
#EB3D44
background
#FAF6FA
surface
#F5EBF4
border
#CFC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #831A87

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

Preview Lab → · Contrast checker → · Palette generator →

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