#831F87#831F87

#831F87 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.6% C 0.179 H 326.4°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#831F87
RGBrgb(131, 31, 135)
HSLhsl(298, 63%, 33%)
HSVhsv(298, 77%, 53%)
CMYKcmyk(3%, 77%, 0%, 47.1%)
CIE-LABlab(33.04, 54.08, -35.63)
CIE-LCHlch(33.04, 64.76, 326.62°)
OKLaboklab(44.64% 0.1489 -0.099)
OKLCHoklch(44.64% 0.179 326.4)
XYZxyz(14.2230, 7.5555, 23.6262)
Luminance0.0756 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831F87 #23871F
analogous
#4F1F87 #831F87 #871F57
triadic
#831F87 #87831F #1F8783
tetradic
#831F87 #874F1F #23871F #1F5787
square
#831F87 #874F1F #23871F #1F5787
split-complementary
#831F87 #57871F #1F874F
monochromatic
#220823 #531455 #831F87 #B32AB9 #D04BD6

Accessibility & contrast

On white

8.36
#831F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #831F87
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831F87#FFFFFF#000000##FFFFFF
##831F871.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468A
Deuteranopia (green-blind)
#385285
Tritanopia (blue-blind)
#873152
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #831f87;
/* rgb */ color: rgb(131, 31, 135);
/* oklch */ color: oklch(44.6% 0.179 326.4);
Tailwind
colors: {
  custom: {
    50: '#ab67aa',
    500: '#831f87',
    950: '#000000',
  },
}
SCSS
$custom: #831f87;
$custom-light: #ab67aa;
$custom-dark: #000000;
JSON
{
  "hex": "#831f87",
  "rgb": {
    "r": 131,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 297.692,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44637,
    "c": 0.1788,
    "h": 326.4
  },
  "luminance": 0.07555
}

Semantic roles & 50–950 ramp

primary
#831F87
secondary
#4EB84A
accent
#E64248
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #831F87

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

Preview Lab → · Contrast checker → · Palette generator →

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