#831E7A#831E7A

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

Color values

HEX#831E7A
RGBrgb(131, 30, 122)
HSLhsl(305, 63%, 32%)
HSVhsv(305, 77%, 51%)
CMYKcmyk(0%, 77.1%, 6.9%, 48.6%)
CIE-LABlab(32.17, 52.20, -28.89)
CIE-LCHlch(32.17, 59.66, 331.04°)
OKLaboklab(43.77% 0.1498 -0.0795)
OKLCHoklch(43.77% 0.17 332.1)
XYZxyz(13.3372, 7.1601, 19.0882)
Luminance0.0716 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831E7A #1E8327
analogous
#5A1E83 #831E7A #831E48
triadic
#831E7A #7A831E #1E7A83
tetradic
#831E7A #835A1E #1E8327 #1E4883
square
#831E7A #835A1E #1E8327 #1E4883
split-complementary
#831E7A #48831E #1E835A
monochromatic
#1F071D #51134C #831E7A #B529A8 #D547C8

Accessibility & contrast

On white

8.64
#831E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #831E7A
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831E7A#FFFFFF#000000##FFFFFF
##831E7A1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17437C
Deuteranopia (green-blind)
#3F5178
Tritanopia (blue-blind)
#892A4A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #831e7a;
/* rgb */ color: rgb(131, 30, 122);
/* oklch */ color: oklch(43.8% 0.170 332.1);
Tailwind
colors: {
  custom: {
    50: '#aa66a1',
    500: '#831e7a',
    950: '#000000',
  },
}
SCSS
$custom: #831e7a;
$custom-light: #aa66a1;
$custom-dark: #000000;
JSON
{
  "hex": "#831e7a",
  "rgb": {
    "r": 131,
    "g": 30,
    "b": 122
  },
  "hsl": {
    "h": 305.347,
    "s": 62.733,
    "l": 31.569
  },
  "oklch": {
    "l": 0.4377,
    "c": 0.16957,
    "h": 332.1
  },
  "luminance": 0.07159
}

Semantic roles & 50–950 ramp

primary
#831E7A
secondary
#47B651
accent
#E65142
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #831E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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