#831A7B#831A7B

#831A7B is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.5% C 0.174 H 331.6°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#831A7B
RGBrgb(131, 26, 123)
HSLhsl(305, 67%, 31%)
HSVhsv(305, 80%, 51%)
CMYKcmyk(0%, 80.2%, 6.1%, 48.6%)
CIE-LABlab(31.80, 53.59, -30.10)
CIE-LCHlch(31.80, 61.47, 330.68°)
OKLaboklab(43.52% 0.1534 -0.083)
OKLCHoklch(43.52% 0.174 331.6)
XYZxyz(13.3046, 6.9953, 19.3845)
Luminance0.0699 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831A7B #1A8322
analogous
#561A83 #831A7B #831A47
triadic
#831A7B #7B831A #1A7B83
tetradic
#831A7B #83561A #1A8322 #1A4783
square
#831A7B #83561A #1A8322 #1A4783
split-complementary
#831A7B #47831A #1A8356
monochromatic
#1D061B #50104B #831A7B #B624AB #D93FCD

Accessibility & contrast

On white

8.75
#831A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#831A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831A7B
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831A7B#FFFFFF#000000##FFFFFF
##831A7B1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F427E
Deuteranopia (green-blind)
#3D5079
Tritanopia (blue-blind)
#89284A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #831a7b;
/* rgb */ color: rgb(131, 26, 123);
/* oklch */ color: oklch(43.5% 0.174 331.6);
Tailwind
colors: {
  custom: {
    50: '#ab64a1',
    500: '#831a7b',
    950: '#000000',
  },
}
SCSS
$custom: #831a7b;
$custom-light: #ab64a1;
$custom-dark: #000000;
JSON
{
  "hex": "#831a7b",
  "rgb": {
    "r": 131,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 304.571,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.43522,
    "c": 0.1744,
    "h": 331.6
  },
  "luminance": 0.06994
}

Semantic roles & 50–950 ramp

primary
#831A7B
secondary
#42B74B
accent
#EA4B3E
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #831A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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