#831D8D#831D8D

#831D8D is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.9% C 0.186 H 324.0°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#831D8D
RGBrgb(131, 29, 141)
HSLhsl(295, 66%, 33%)
HSVhsv(295, 79%, 55%)
CMYKcmyk(7.1%, 79.4%, 0%, 44.7%)
CIE-LABlab(33.20, 55.77, -39.10)
CIE-LCHlch(33.20, 68.11, 324.97°)
OKLaboklab(44.87% 0.1502 -0.1091)
OKLCHoklch(44.87% 0.186 324)
XYZxyz(14.6067, 7.6280, 25.8971)
Luminance0.0763 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831D8D #278D1D
analogous
#4B1D8D #831D8D #8D1D5F
triadic
#831D8D #8D831D #1D8D83
tetradic
#831D8D #8D4B1D #278D1D #1D5F8D
square
#831D8D #8D4B1D #278D1D #1D5F8D
split-complementary
#831D8D #5F8D1D #1D8D4B
monochromatic
#250827 #54135A #831D8D #B227C0 #CD4BDA

Accessibility & contrast

On white

8.32
#831D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#831D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831D8D
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831D8D#FFFFFF#000000##FFFFFF
##831D8D1.008.322.538.32
#FFFFFF8.321.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#33528A
Tritanopia (blue-blind)
#853355
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #831d8d;
/* rgb */ color: rgb(131, 29, 141);
/* oklch */ color: oklch(44.9% 0.186 324.0);
Tailwind
colors: {
  custom: {
    50: '#ab66af',
    500: '#831d8d',
    950: '#000000',
  },
}
SCSS
$custom: #831d8d;
$custom-light: #ab66af;
$custom-dark: #000000;
JSON
{
  "hex": "#831d8d",
  "rgb": {
    "r": 131,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 294.643,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.44868,
    "c": 0.1857,
    "h": 324
  },
  "luminance": 0.07627
}

Semantic roles & 50–950 ramp

primary
#831D8D
secondary
#54BC4A
accent
#E93F4E
background
#FAF6FA
surface
#F5EBF4
border
#CFC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #831D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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