#831B7D#831B7D

#831B7D is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.7% C 0.175 H 330.7°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#831B7D
RGBrgb(131, 27, 125)
HSLhsl(303, 66%, 31%)
HSVhsv(303, 79%, 51%)
CMYKcmyk(0%, 79.4%, 4.6%, 48.6%)
CIE-LABlab(32.01, 53.63, -31.02)
CIE-LCHlch(32.01, 61.95, 329.95°)
OKLaboklab(43.71% 0.1526 -0.0856)
OKLCHoklch(43.71% 0.175 330.7)
XYZxyz(13.4536, 7.0909, 20.0582)
Luminance0.0709 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831B7D #1B8321
analogous
#551B83 #831B7D #831B49
triadic
#831B7D #7D831B #1B7D83
tetradic
#831B7D #83551B #1B8321 #1B4983
square
#831B7D #83551B #1B8321 #1B4983
split-complementary
#831B7D #49831B #1B8355
monochromatic
#1E061C #50114D #831B7D #B625AD #D841CF

Accessibility & contrast

On white

8.68
#831B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#831B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831B7D
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831B7D#FFFFFF#000000##FFFFFF
##831B7D1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4280
Deuteranopia (green-blind)
#3D507B
Tritanopia (blue-blind)
#882A4B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #831b7d;
/* rgb */ color: rgb(131, 27, 125);
/* oklch */ color: oklch(43.7% 0.175 330.7);
Tailwind
colors: {
  custom: {
    50: '#ab65a3',
    500: '#831b7d',
    950: '#000000',
  },
}
SCSS
$custom: #831b7d;
$custom-light: #ab65a3;
$custom-dark: #000000;
JSON
{
  "hex": "#831b7d",
  "rgb": {
    "r": 131,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 303.462,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.43714,
    "c": 0.17494,
    "h": 330.7
  },
  "luminance": 0.0709
}

Semantic roles & 50–950 ramp

primary
#831B7D
secondary
#43B64A
accent
#E9493F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #831B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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