#831A8B#831A8B

#831A8B is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.5% C 0.187 H 324.9°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#831A8B
RGBrgb(131, 26, 139)
HSLhsl(296, 68%, 32%)
HSVhsv(296, 81%, 55%)
CMYKcmyk(5.8%, 81.3%, 0%, 45.5%)
CIE-LABlab(32.76, 56.29, -38.55)
CIE-LCHlch(32.76, 68.23, 325.60°)
OKLaboklab(44.52% 0.1528 -0.1075)
OKLCHoklch(44.52% 0.187 324.9)
XYZxyz(14.3893, 7.4291, 25.0972)
Luminance0.0743 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831A8B #228B1A
analogous
#4A1A8B #831A8B #8B1A5B
triadic
#831A8B #8B831A #1A8B83
tetradic
#831A8B #8B4A1A #228B1A #1A5B8B
square
#831A8B #8B4A1A #228B1A #1A5B8B
split-complementary
#831A8B #5B8B1A #1A8B4A
monochromatic
#220724 #521057 #831A8B #B424BF #D143DC

Accessibility & contrast

On white

8.45
#831A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #831A8B
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831A8B#FFFFFF#000000##FFFFFF
##831A8B1.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #831a8b;
/* rgb */ color: rgb(131, 26, 139);
/* oklch */ color: oklch(44.5% 0.187 324.9);
Tailwind
colors: {
  custom: {
    50: '#ab65ad',
    500: '#831a8b',
    950: '#000000',
  },
}
SCSS
$custom: #831a8b;
$custom-light: #ab65ad;
$custom-dark: #000000;
JSON
{
  "hex": "#831a8b",
  "rgb": {
    "r": 131,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 295.752,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.44522,
    "c": 0.18685,
    "h": 324.9
  },
  "luminance": 0.07428
}

Semantic roles & 50–950 ramp

primary
#831A8B
secondary
#4CBD44
accent
#EB3C49
background
#FAF6FA
surface
#F5EBF4
border
#CFC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #831A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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