#831B77#831B77

#831B77 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.170 H 333.4°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#831B77
RGBrgb(131, 27, 119)
HSLhsl(307, 66%, 31%)
HSVhsv(307, 79%, 51%)
CMYKcmyk(0%, 79.4%, 9.2%, 48.6%)
CIE-LABlab(31.68, 52.66, -27.77)
CIE-LCHlch(31.68, 59.53, 332.19°)
OKLaboklab(43.36% 0.1524 -0.0762)
OKLCHoklch(43.36% 0.17 333.4)
XYZxyz(13.0819, 6.9422, 18.1002)
Luminance0.0694 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831B77 #1B8327
analogous
#5B1B83 #831B77 #831B43
triadic
#831B77 #77831B #1B7783
tetradic
#831B77 #835B1B #1B8327 #1B4383
square
#831B77 #835B1B #1B8327 #1B4383
split-complementary
#831B77 #43831B #1B835B
monochromatic
#1E061B #501149 #831B77 #B625A5 #D841C6

Accessibility & contrast

On white

8.79
#831B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#831B77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831B77
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831B77#FFFFFF#000000##FFFFFF
##831B771.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174179
Deuteranopia (green-blind)
#405075
Tritanopia (blue-blind)
#892648
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #831b77;
/* rgb */ color: rgb(131, 27, 119);
/* oklch */ color: oklch(43.4% 0.170 333.4);
Tailwind
colors: {
  custom: {
    50: '#ab649e',
    500: '#831b77',
    950: '#000000',
  },
}
SCSS
$custom: #831b77;
$custom-light: #ab649e;
$custom-dark: #000000;
JSON
{
  "hex": "#831b77",
  "rgb": {
    "r": 131,
    "g": 27,
    "b": 119
  },
  "hsl": {
    "h": 306.923,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.43363,
    "c": 0.17041,
    "h": 333.4
  },
  "luminance": 0.06941
}

Semantic roles & 50–950 ramp

primary
#831B77
secondary
#43B651
accent
#E9533F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #831B77

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

Preview Lab → · Contrast checker → · Palette generator →

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