#831D7E#831D7E

#831D7E is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.9% C 0.174 H 330.2°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#831D7E
RGBrgb(131, 29, 126)
HSLhsl(303, 64%, 31%)
HSVhsv(303, 78%, 51%)
CMYKcmyk(0%, 77.9%, 3.8%, 48.6%)
CIE-LABlab(32.28, 53.18, -31.22)
CIE-LCHlch(32.28, 61.66, 329.59°)
OKLaboklab(43.93% 0.1508 -0.0862)
OKLCHoklch(43.93% 0.174 330.2)
XYZxyz(13.5653, 7.2115, 20.4121)
Luminance0.0721 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831D7E #1D8322
analogous
#551D83 #831D7E #831D4B
triadic
#831D7E #7E831D #1D7E83
tetradic
#831D7E #83551D #1D8322 #1D4B83
square
#831D7E #83551D #1D8322 #1D4B83
split-complementary
#831D7E #4B831D #1D8355
monochromatic
#1F071E #51124E #831D7E #B528AE #D645CF

Accessibility & contrast

On white

8.60
#831D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#831D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831D7E
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831D7E#FFFFFF#000000##FFFFFF
##831D7E1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4381
Deuteranopia (green-blind)
#3D517C
Tritanopia (blue-blind)
#882B4C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #831d7e;
/* rgb */ color: rgb(131, 29, 126);
/* oklch */ color: oklch(43.9% 0.174 330.2);
Tailwind
colors: {
  custom: {
    50: '#aa66a4',
    500: '#831d7e',
    950: '#000000',
  },
}
SCSS
$custom: #831d7e;
$custom-light: #aa66a4;
$custom-dark: #000000;
JSON
{
  "hex": "#831d7e",
  "rgb": {
    "r": 131,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 302.941,
    "s": 63.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43925,
    "c": 0.17371,
    "h": 330.2
  },
  "luminance": 0.0721
}

Semantic roles & 50–950 ramp

primary
#831D7E
secondary
#46B64B
accent
#E74941
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #831D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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