#831F8D#831F8D

#831F8D is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.184 H 323.9°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#831F8D
RGBrgb(131, 31, 141)
HSLhsl(295, 64%, 34%)
HSVhsv(295, 78%, 55%)
CMYKcmyk(7.1%, 78%, 0%, 44.7%)
CIE-LABlab(33.41, 55.14, -38.75)
CIE-LCHlch(33.41, 67.40, 324.90°)
OKLaboklab(45.02% 0.1485 -0.1081)
OKLCHoklch(45.02% 0.184 323.9)
XYZxyz(14.6574, 7.7293, 25.9140)
Luminance0.0773 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831F8D #298D1F
analogous
#4C1F8D #831F8D #8D1F60
triadic
#831F8D #8D831F #1F8D83
tetradic
#831F8D #8D4C1F #298D1F #1F608D
square
#831F8D #8D4C1F #298D1F #1F608D
split-complementary
#831F8D #608D1F #1F8D4C
monochromatic
#260929 #54145B #831F8D #B22ABF #CC4ED8

Accessibility & contrast

On white

8.25
#831F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#831F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831F8D
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831F8D#FFFFFF#000000##FFFFFF
##831F8D1.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#34528A
Tritanopia (blue-blind)
#853455
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #831f8d;
/* rgb */ color: rgb(131, 31, 141);
/* oklch */ color: oklch(45.0% 0.184 323.9);
Tailwind
colors: {
  custom: {
    50: '#ab67af',
    500: '#831f8d',
    950: '#000000',
  },
}
SCSS
$custom: #831f8d;
$custom-light: #ab67af;
$custom-dark: #000000;
JSON
{
  "hex": "#831f8d",
  "rgb": {
    "r": 131,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 294.545,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45022,
    "c": 0.18372,
    "h": 323.9
  },
  "luminance": 0.07728
}

Semantic roles & 50–950 ramp

primary
#831F8D
secondary
#57BB4D
accent
#E74150
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #831F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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