#831A7F#831A7F

#831A7F is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.8% C 0.177 H 329.8°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#831A7F
RGBrgb(131, 26, 127)
HSLhsl(302, 67%, 31%)
HSVhsv(302, 80%, 51%)
CMYKcmyk(0%, 80.2%, 3.1%, 48.6%)
CIE-LABlab(32.03, 54.25, -32.25)
CIE-LCHlch(32.03, 63.11, 329.27°)
OKLaboklab(43.76% 0.1534 -0.0892)
OKLCHoklch(43.76% 0.177 329.8)
XYZxyz(13.5602, 7.0975, 20.7303)
Luminance0.0710 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831A7F #1A831E
analogous
#521A83 #831A7F #831A4A
triadic
#831A7F #7F831A #1A7F83
tetradic
#831A7F #83521A #1A831E #1A4A83
square
#831A7F #83521A #1A831E #1A4A83
split-complementary
#831A7F #4A831A #1A8352
monochromatic
#1D061C #50104D #831A7F #B624B1 #D93FD3

Accessibility & contrast

On white

8.68
#831A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#831A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831A7F
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831A7F#FFFFFF#000000##FFFFFF
##831A7F1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064282
Deuteranopia (green-blind)
#3B507D
Tritanopia (blue-blind)
#882A4C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #831a7f;
/* rgb */ color: rgb(131, 26, 127);
/* oklch */ color: oklch(43.8% 0.177 329.8);
Tailwind
colors: {
  custom: {
    50: '#ab64a4',
    500: '#831a7f',
    950: '#000000',
  },
}
SCSS
$custom: #831a7f;
$custom-light: #ab64a4;
$custom-dark: #000000;
JSON
{
  "hex": "#831a7f",
  "rgb": {
    "r": 131,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 302.286,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.43762,
    "c": 0.17744,
    "h": 329.8
  },
  "luminance": 0.07096
}

Semantic roles & 50–950 ramp

primary
#831A7F
secondary
#42B747
accent
#EA453E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #831A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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