#831C7E#831C7E

#831C7E is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.8% C 0.175 H 330.3°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#831C7E
RGBrgb(131, 28, 126)
HSLhsl(303, 65%, 31%)
HSVhsv(303, 79%, 51%)
CMYKcmyk(0%, 78.6%, 3.8%, 48.6%)
CIE-LABlab(32.18, 53.49, -31.39)
CIE-LCHlch(32.18, 62.02, 329.59°)
OKLaboklab(43.85% 0.1517 -0.0867)
OKLCHoklch(43.85% 0.175 330.3)
XYZxyz(13.5412, 7.1632, 20.4041)
Luminance0.0716 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831C7E #1C8321
analogous
#541C83 #831C7E #831C4A
triadic
#831C7E #7E831C #1C7E83
tetradic
#831C7E #83541C #1C8321 #1C4A83
square
#831C7E #83541C #1C8321 #1C4A83
split-complementary
#831C7E #4A831C #1C8354
monochromatic
#1E061D #51114D #831C7E #B527AE #D743D0

Accessibility & contrast

On white

8.63
#831C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #831C7E
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831C7E#FFFFFF#000000##FFFFFF
##831C7E1.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4381
Deuteranopia (green-blind)
#3C517C
Tritanopia (blue-blind)
#882B4C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #831c7e;
/* rgb */ color: rgb(131, 28, 126);
/* oklch */ color: oklch(43.8% 0.175 330.3);
Tailwind
colors: {
  custom: {
    50: '#ab65a4',
    500: '#831c7e',
    950: '#000000',
  },
}
SCSS
$custom: #831c7e;
$custom-light: #ab65a4;
$custom-dark: #000000;
JSON
{
  "hex": "#831c7e",
  "rgb": {
    "r": 131,
    "g": 28,
    "b": 126
  },
  "hsl": {
    "h": 302.913,
    "s": 64.78,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43848,
    "c": 0.17473,
    "h": 330.3
  },
  "luminance": 0.07162
}

Semantic roles & 50–950 ramp

primary
#831C7E
secondary
#45B64A
accent
#E84840
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #831C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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