#831B7F#831B7F

#831B7F is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.8% C 0.176 H 329.8°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#831B7F
RGBrgb(131, 27, 127)
HSLhsl(302, 66%, 31%)
HSVhsv(302, 79%, 51%)
CMYKcmyk(0%, 79.4%, 3.1%, 48.6%)
CIE-LABlab(32.13, 53.95, -32.09)
CIE-LCHlch(32.13, 62.78, 329.26°)
OKLaboklab(43.83% 0.1526 -0.0887)
OKLCHoklch(43.83% 0.176 329.8)
XYZxyz(13.5827, 7.1425, 20.7378)
Luminance0.0714 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831B7F #1B831F
analogous
#531B83 #831B7F #831B4B
triadic
#831B7F #7F831B #1B7F83
tetradic
#831B7F #83531B #1B831F #1B4B83
square
#831B7F #83531B #1B831F #1B4B83
split-complementary
#831B7F #4B831B #1B8353
monochromatic
#1E061D #50114E #831B7F #B625B0 #D841D2

Accessibility & contrast

On white

8.65
#831B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#831B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831B7F
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831B7F#FFFFFF#000000##FFFFFF
##831B7F1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094382
Deuteranopia (green-blind)
#3B507D
Tritanopia (blue-blind)
#882B4C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #831b7f;
/* rgb */ color: rgb(131, 27, 127);
/* oklch */ color: oklch(43.8% 0.176 329.8);
Tailwind
colors: {
  custom: {
    50: '#ab65a4',
    500: '#831b7f',
    950: '#000000',
  },
}
SCSS
$custom: #831b7f;
$custom-light: #ab65a4;
$custom-dark: #000000;
JSON
{
  "hex": "#831b7f",
  "rgb": {
    "r": 131,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 302.308,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.43834,
    "c": 0.17648,
    "h": 329.8
  },
  "luminance": 0.07141
}

Semantic roles & 50–950 ramp

primary
#831B7F
secondary
#43B648
accent
#E9463F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #831B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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