#831D8B#831D8B

#831D8B is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.7% C 0.184 H 324.8°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#831D8B
RGBrgb(131, 29, 139)
HSLhsl(296, 65%, 33%)
HSVhsv(296, 79%, 55%)
CMYKcmyk(5.8%, 79.1%, 0%, 45.5%)
CIE-LABlab(33.07, 55.41, -38.06)
CIE-LCHlch(33.07, 67.22, 325.51°)
OKLaboklab(44.74% 0.1504 -0.1061)
OKLCHoklch(44.74% 0.184 324.8)
XYZxyz(14.4593, 7.5691, 25.1205)
Luminance0.0757 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831D8B #258B1D
analogous
#4C1D8B #831D8B #8B1D5C
triadic
#831D8B #8B831D #1D8B83
tetradic
#831D8B #8B4C1D #258B1D #1D5C8B
square
#831D8B #8B4C1D #258B1D #1D5C8B
split-complementary
#831D8B #5C8B1D #1D8B4C
monochromatic
#240826 #531258 #831D8B #B328BE #CF49D9

Accessibility & contrast

On white

8.35
#831D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #831D8B
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831D8B#FFFFFF#000000##FFFFFF
##831D8B1.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#355288
Tritanopia (blue-blind)
#863254
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #831d8b;
/* rgb */ color: rgb(131, 29, 139);
/* oklch */ color: oklch(44.7% 0.184 324.8);
Tailwind
colors: {
  custom: {
    50: '#ab66ad',
    500: '#831d8b',
    950: '#000000',
  },
}
SCSS
$custom: #831d8b;
$custom-light: #ab66ad;
$custom-dark: #000000;
JSON
{
  "hex": "#831d8b",
  "rgb": {
    "r": 131,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 295.636,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44737,
    "c": 0.18407,
    "h": 324.8
  },
  "luminance": 0.07568
}

Semantic roles & 50–950 ramp

primary
#831D8B
secondary
#51BB49
accent
#E83F4C
background
#FAF6FA
surface
#F5EBF4
border
#CFC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #831D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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