#831C72#831C72

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

Color values

HEX#831C72
RGBrgb(131, 28, 114)
HSLhsl(310, 65%, 31%)
HSVhsv(310, 79%, 51%)
CMYKcmyk(0%, 78.6%, 13%, 48.6%)
CIE-LABlab(31.51, 51.57, -24.85)
CIE-LCHlch(31.51, 57.25, 334.27°)
OKLaboklab(43.16% 0.1512 -0.0678)
OKLCHoklch(43.16% 0.166 335.8)
XYZxyz(12.8128, 6.8719, 16.5679)
Luminance0.0687 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831C72 #1C832D
analogous
#601C83 #831C72 #831C3E
triadic
#831C72 #72831C #1C7283
tetradic
#831C72 #83601C #1C832D #1C3E83
square
#831C72 #83601C #1C832D #1C3E83
split-complementary
#831C72 #3E831C #1C8360
monochromatic
#1E061A #511146 #831C72 #B5279E #D743BE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##831C72#FFFFFF#000000##FFFFFF
##831C721.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)
#1D4074
Deuteranopia (green-blind)
#425070
Tritanopia (blue-blind)
#8A2445
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #831c72;
/* rgb */ color: rgb(131, 28, 114);
/* oklch */ color: oklch(43.2% 0.166 335.8);
Tailwind
colors: {
  custom: {
    50: '#ab659b',
    500: '#831c72',
    950: '#000000',
  },
}
SCSS
$custom: #831c72;
$custom-light: #ab659b;
$custom-dark: #000000;
JSON
{
  "hex": "#831c72",
  "rgb": {
    "r": 131,
    "g": 28,
    "b": 114
  },
  "hsl": {
    "h": 309.903,
    "s": 64.78,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43159,
    "c": 0.16572,
    "h": 335.8
  },
  "luminance": 0.06871
}

Semantic roles & 50–950 ramp

primary
#831C72
secondary
#45B657
accent
#E85C40
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #831C72

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

Preview Lab → · Contrast checker → · Palette generator →

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