#831D8A#831D8A

#831D8A is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.7% C 0.183 H 325.2°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#831D8A
RGBrgb(131, 29, 138)
HSLhsl(296, 65%, 33%)
HSVhsv(296, 79%, 54%)
CMYKcmyk(5.1%, 79%, 0%, 45.9%)
CIE-LABlab(33.01, 55.23, -37.54)
CIE-LCHlch(33.01, 66.79, 325.79°)
OKLaboklab(44.67% 0.1505 -0.1046)
OKLCHoklch(44.67% 0.183 325.2)
XYZxyz(14.3865, 7.5400, 24.7374)
Luminance0.0754 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831D8A #248A1D
analogous
#4D1D8A #831D8A #8A1D5A
triadic
#831D8A #8A831D #1D8A83
tetradic
#831D8A #8A4D1D #248A1D #1D5A8A
square
#831D8A #8A4D1D #248A1D #1D5A8A
split-complementary
#831D8A #5A8A1D #1D8A4D
monochromatic
#230825 #531257 #831D8A #B328BD #CF49D9

Accessibility & contrast

On white

8.37
#831D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#831D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831D8A
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831D8A#FFFFFF#000000##FFFFFF
##831D8A1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#355287
Tritanopia (blue-blind)
#863153
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #831d8a;
/* rgb */ color: rgb(131, 29, 138);
/* oklch */ color: oklch(44.7% 0.183 325.2);
Tailwind
colors: {
  custom: {
    50: '#ab66ad',
    500: '#831d8a',
    950: '#000000',
  },
}
SCSS
$custom: #831d8a;
$custom-light: #ab66ad;
$custom-dark: #000000;
JSON
{
  "hex": "#831d8a",
  "rgb": {
    "r": 131,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 296.147,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.44673,
    "c": 0.18326,
    "h": 325.2
  },
  "luminance": 0.07539
}

Semantic roles & 50–950 ramp

primary
#831D8A
secondary
#4FBB48
accent
#E8404A
background
#FAF6FA
surface
#F5EBF4
border
#CFC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #831D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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