#831B72#831B72

#831B72 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.1% C 0.167 H 335.8°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#831B72
RGBrgb(131, 27, 114)
HSLhsl(310, 66%, 31%)
HSVhsv(310, 79%, 51%)
CMYKcmyk(0%, 79.4%, 13%, 48.6%)
CIE-LABlab(31.41, 51.88, -25.02)
CIE-LCHlch(31.41, 57.60, 334.25°)
OKLaboklab(43.08% 0.1521 -0.0683)
OKLCHoklch(43.08% 0.167 335.8)
XYZxyz(12.7895, 6.8252, 16.5602)
Luminance0.0682 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831B72 #1B832C
analogous
#601B83 #831B72 #831B3E
triadic
#831B72 #72831B #1B7283
tetradic
#831B72 #83601B #1B832C #1B3E83
square
#831B72 #83601B #1B832C #1B3E83
split-complementary
#831B72 #3E831B #1B8360
monochromatic
#1E061A #501146 #831B72 #B6259E #D841BF

Accessibility & contrast

On white

8.88
#831B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#831B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831B72
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831B72#FFFFFF#000000##FFFFFF
##831B721.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4074
Deuteranopia (green-blind)
#424F70
Tritanopia (blue-blind)
#8A2445
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #831b72;
/* rgb */ color: rgb(131, 27, 114);
/* oklch */ color: oklch(43.1% 0.167 335.8);
Tailwind
colors: {
  custom: {
    50: '#ab649b',
    500: '#831b72',
    950: '#000000',
  },
}
SCSS
$custom: #831b72;
$custom-light: #ab649b;
$custom-dark: #000000;
JSON
{
  "hex": "#831b72",
  "rgb": {
    "r": 131,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 309.808,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.43082,
    "c": 0.16675,
    "h": 335.8
  },
  "luminance": 0.06824
}

Semantic roles & 50–950 ramp

primary
#831B72
secondary
#43B656
accent
#E95B3F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #831B72

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

Preview Lab → · Contrast checker → · Palette generator →

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