#831B74#831B74

#831B74 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.2% C 0.168 H 334.8°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#831B74
RGBrgb(131, 27, 116)
HSLhsl(309, 66%, 31%)
HSVhsv(309, 79%, 51%)
CMYKcmyk(0%, 79.4%, 11.5%, 48.6%)
CIE-LABlab(31.51, 52.19, -26.13)
CIE-LCHlch(31.51, 58.36, 333.41°)
OKLaboklab(43.19% 0.1523 -0.0715)
OKLCHoklch(43.19% 0.168 334.8)
XYZxyz(12.9046, 6.8713, 17.1663)
Luminance0.0687 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831B74 #1B832A
analogous
#5E1B83 #831B74 #831B40
triadic
#831B74 #74831B #1B7483
tetradic
#831B74 #835E1B #1B832A #1B4083
square
#831B74 #835E1B #1B832A #1B4083
split-complementary
#831B74 #40831B #1B835E
monochromatic
#1E061A #501147 #831B74 #B625A1 #D841C2

Accessibility & contrast

On white

8.85
#831B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#831B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831B74
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831B74#FFFFFF#000000##FFFFFF
##831B741.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4076
Deuteranopia (green-blind)
#415072
Tritanopia (blue-blind)
#8A2546
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #831b74;
/* rgb */ color: rgb(131, 27, 116);
/* oklch */ color: oklch(43.2% 0.168 334.8);
Tailwind
colors: {
  custom: {
    50: '#ab649c',
    500: '#831b74',
    950: '#000000',
  },
}
SCSS
$custom: #831b74;
$custom-light: #ab649c;
$custom-dark: #000000;
JSON
{
  "hex": "#831b74",
  "rgb": {
    "r": 131,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 308.654,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.43193,
    "c": 0.1682,
    "h": 334.8
  },
  "luminance": 0.0687
}

Semantic roles & 50–950 ramp

primary
#831B74
secondary
#43B654
accent
#E9583F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #831B74

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

Preview Lab → · Contrast checker → · Palette generator →

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