#831A7E#831A7E

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

Color values

HEX#831A7E
RGBrgb(131, 26, 126)
HSLhsl(303, 67%, 31%)
HSVhsv(303, 80%, 51%)
CMYKcmyk(0%, 80.2%, 3.8%, 48.6%)
CIE-LABlab(31.97, 54.08, -31.72)
CIE-LCHlch(31.97, 62.70, 329.61°)
OKLaboklab(43.7% 0.1534 -0.0876)
OKLCHoklch(43.7% 0.177 330.3)
XYZxyz(13.4953, 7.0715, 20.3888)
Luminance0.0707 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831A7E #1A831F
analogous
#531A83 #831A7E #831A49
triadic
#831A7E #7E831A #1A7E83
tetradic
#831A7E #83531A #1A831F #1A4983
square
#831A7E #83531A #1A831F #1A4983
split-complementary
#831A7E #49831A #1A8353
monochromatic
#1D061C #50104D #831A7E #B624AF #D93FD1

Accessibility & contrast

On white

8.70
#831A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #831A7E
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831A7E#FFFFFF#000000##FFFFFF
##831A7E1.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094281
Deuteranopia (green-blind)
#3C507C
Tritanopia (blue-blind)
#88294C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #831a7e;
/* rgb */ color: rgb(131, 26, 126);
/* oklch */ color: oklch(43.7% 0.177 330.3);
Tailwind
colors: {
  custom: {
    50: '#ab64a4',
    500: '#831a7e',
    950: '#000000',
  },
}
SCSS
$custom: #831a7e;
$custom-light: #ab64a4;
$custom-dark: #000000;
JSON
{
  "hex": "#831a7e",
  "rgb": {
    "r": 131,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 302.857,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.43701,
    "c": 0.17667,
    "h": 330.3
  },
  "luminance": 0.0707
}

Semantic roles & 50–950 ramp

primary
#831A7E
secondary
#42B748
accent
#EA463E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #831A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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