#831B8B#831B8B

#831B8B is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.6% C 0.186 H 324.8°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#831B8B
RGBrgb(131, 27, 139)
HSLhsl(296, 67%, 33%)
HSVhsv(296, 81%, 55%)
CMYKcmyk(5.8%, 80.6%, 0%, 45.5%)
CIE-LABlab(32.86, 56.01, -38.39)
CIE-LCHlch(32.86, 67.90, 325.57°)
OKLaboklab(44.59% 0.152 -0.1071)
OKLCHoklch(44.59% 0.186 324.8)
XYZxyz(14.4118, 7.4742, 25.1047)
Luminance0.0747 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831B8B #238B1B
analogous
#4B1B8B #831B8B #8B1B5B
triadic
#831B8B #8B831B #1B8B83
tetradic
#831B8B #8B4B1B #238B1B #1B5B8B
square
#831B8B #8B4B1B #238B1B #1B5B8B
split-complementary
#831B8B #5B8B1B #1B8B4B
monochromatic
#220725 #531158 #831B8B #B325BE #D045DB

Accessibility & contrast

On white

8.42
#831B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#831B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831B8B
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831B8B#FFFFFF#000000##FFFFFF
##831B8B1.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#345188
Tritanopia (blue-blind)
#863153
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #831b8b;
/* rgb */ color: rgb(131, 27, 139);
/* oklch */ color: oklch(44.6% 0.186 324.8);
Tailwind
colors: {
  custom: {
    50: '#ab65ad',
    500: '#831b8b',
    950: '#000000',
  },
}
SCSS
$custom: #831b8b;
$custom-light: #ab65ad;
$custom-dark: #000000;
JSON
{
  "hex": "#831b8b",
  "rgb": {
    "r": 131,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 295.714,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44591,
    "c": 0.18595,
    "h": 324.8
  },
  "luminance": 0.07473
}

Semantic roles & 50–950 ramp

primary
#831B8B
secondary
#4EBC45
accent
#EA3D4A
background
#FAF6FA
surface
#F5EBF4
border
#CFC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #831B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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