#831B8D#831B8D

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

Color values

HEX#831B8D
RGBrgb(131, 27, 141)
HSLhsl(295, 68%, 33%)
HSVhsv(295, 81%, 55%)
CMYKcmyk(7.1%, 80.9%, 0%, 44.7%)
CIE-LABlab(32.99, 56.36, -39.42)
CIE-LCHlch(32.99, 68.78, 325.03°)
OKLaboklab(44.72% 0.1519 -0.1101)
OKLCHoklch(44.72% 0.188 324.1)
XYZxyz(14.5593, 7.5332, 25.8813)
Luminance0.0753 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831B8D #258D1B
analogous
#4A1B8D #831B8D #8D1B5E
triadic
#831B8D #8D831B #1B8D83
tetradic
#831B8D #8D4A1B #258D1B #1B5E8D
square
#831B8D #8D4A1B #258D1B #1B5E8D
split-complementary
#831B8D #5E8D1B #1B8D4A
monochromatic
#240726 #53115A #831B8D #B325C0 #CF47DC

Accessibility & contrast

On white

8.38
#831B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #831B8D
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831B8D#FFFFFF#000000##FFFFFF
##831B8D1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #831b8d;
/* rgb */ color: rgb(131, 27, 141);
/* oklch */ color: oklch(44.7% 0.188 324.1);
Tailwind
colors: {
  custom: {
    50: '#ab66af',
    500: '#831b8d',
    950: '#000000',
  },
}
SCSS
$custom: #831b8d;
$custom-light: #ab66af;
$custom-dark: #000000;
JSON
{
  "hex": "#831b8d",
  "rgb": {
    "r": 131,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 294.737,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44723,
    "c": 0.18757,
    "h": 324.1
  },
  "luminance": 0.07532
}

Semantic roles & 50–950 ramp

primary
#831B8D
secondary
#51BD46
accent
#EB3D4C
background
#FAF6FA
surface
#F5EBF4
border
#CFC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #831B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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