#831A7D#831A7D

#831A7D is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.6% C 0.176 H 330.7°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#831A7D
RGBrgb(131, 26, 125)
HSLhsl(303, 67%, 31%)
HSVhsv(303, 80%, 51%)
CMYKcmyk(0%, 80.2%, 4.6%, 48.6%)
CIE-LABlab(31.91, 53.92, -31.18)
CIE-LCHlch(31.91, 62.29, 329.96°)
OKLaboklab(43.64% 0.1534 -0.0861)
OKLCHoklch(43.64% 0.176 330.7)
XYZxyz(13.4311, 7.0458, 20.0507)
Luminance0.0704 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831A7D #1A8320
analogous
#541A83 #831A7D #831A48
triadic
#831A7D #7D831A #1A7D83
tetradic
#831A7D #83541A #1A8320 #1A4883
square
#831A7D #83541A #1A8320 #1A4883
split-complementary
#831A7D #48831A #1A8354
monochromatic
#1D061C #50104C #831A7D #B624AE #D93FD0

Accessibility & contrast

On white

8.72
#831A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#831A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831A7D
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831A7D#FFFFFF#000000##FFFFFF
##831A7D1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4280
Deuteranopia (green-blind)
#3C507B
Tritanopia (blue-blind)
#88294B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #831a7d;
/* rgb */ color: rgb(131, 26, 125);
/* oklch */ color: oklch(43.6% 0.176 330.7);
Tailwind
colors: {
  custom: {
    50: '#ab64a3',
    500: '#831a7d',
    950: '#000000',
  },
}
SCSS
$custom: #831a7d;
$custom-light: #ab64a3;
$custom-dark: #000000;
JSON
{
  "hex": "#831a7d",
  "rgb": {
    "r": 131,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 303.429,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.43641,
    "c": 0.17591,
    "h": 330.7
  },
  "luminance": 0.07045
}

Semantic roles & 50–950 ramp

primary
#831A7D
secondary
#42B749
accent
#EA483E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #831A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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