#831F8F#831F8F

#831F8F is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.185 H 323.2°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#831F8F
RGBrgb(131, 31, 143)
HSLhsl(294, 64%, 34%)
HSVhsv(294, 78%, 56%)
CMYKcmyk(8.4%, 78.3%, 0%, 43.9%)
CIE-LABlab(33.54, 55.51, -39.78)
CIE-LCHlch(33.54, 68.29, 324.37°)
OKLaboklab(45.15% 0.1484 -0.1111)
OKLCHoklch(45.15% 0.185 323.2)
XYZxyz(14.8075, 7.7893, 26.7048)
Luminance0.0779 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831F8F #2B8F1F
analogous
#4B1F8F #831F8F #8F1F63
triadic
#831F8F #8F831F #1F8F83
tetradic
#831F8F #8F4B1F #2B8F1F #1F638F
square
#831F8F #8F4B1F #2B8F1F #1F638F
split-complementary
#831F8F #638F1F #1F8F4B
monochromatic
#27092A #55145D #831F8F #B12AC1 #CA4FD9

Accessibility & contrast

On white

8.21
#831F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#831F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831F8F
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831F8F#FFFFFF#000000##FFFFFF
##831F8F1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#33538C
Tritanopia (blue-blind)
#853556
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #831f8f;
/* rgb */ color: rgb(131, 31, 143);
/* oklch */ color: oklch(45.2% 0.185 323.2);
Tailwind
colors: {
  custom: {
    50: '#ab67b0',
    500: '#831f8f',
    950: '#000000',
  },
}
SCSS
$custom: #831f8f;
$custom-light: #ab67b0;
$custom-dark: #000000;
JSON
{
  "hex": "#831f8f",
  "rgb": {
    "r": 131,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 293.571,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45154,
    "c": 0.18538,
    "h": 323.2
  },
  "luminance": 0.07788
}

Semantic roles & 50–950 ramp

primary
#831F8F
secondary
#5ABC4E
accent
#E74052
background
#FAF6FA
surface
#F5EBF5
border
#CFC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #831F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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