#831D97#831D97

#831D97 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.5% C 0.194 H 320.3°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#831D97
RGBrgb(131, 29, 151)
HSLhsl(290, 68%, 35%)
HSVhsv(290, 81%, 59%)
CMYKcmyk(13.2%, 80.8%, 0%, 40.8%)
CIE-LABlab(33.86, 57.60, -44.17)
CIE-LCHlch(33.86, 72.59, 322.51°)
OKLaboklab(45.55% 0.1491 -0.124)
OKLCHoklch(45.55% 0.194 320.3)
XYZxyz(15.3847, 7.9392, 29.9942)
Luminance0.0794 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831D97 #31971D
analogous
#461D97 #831D97 #971D6E
triadic
#831D97 #97831D #1D9783
tetradic
#831D97 #97461D #31971D #1D6E97
square
#831D97 #97461D #31971D #1D6E97
split-complementary
#831D97 #6E971D #1D9746
monochromatic
#2A0930 #561364 #831D97 #B027CA #C651DE

Accessibility & contrast

On white

8.12
#831D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#831D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831D97
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831D97#FFFFFF#000000##FFFFFF
##831D971.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#2A5394
Tritanopia (blue-blind)
#83385B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #831d97;
/* rgb */ color: rgb(131, 29, 151);
/* oklch */ color: oklch(45.5% 0.194 320.3);
Tailwind
colors: {
  custom: {
    50: '#ab67b6',
    500: '#831d97',
    950: '#000000',
  },
}
SCSS
$custom: #831d97;
$custom-light: #ab67b6;
$custom-dark: #000000;
JSON
{
  "hex": "#831d97",
  "rgb": {
    "r": 131,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 290.164,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.45546,
    "c": 0.19395,
    "h": 320.3
  },
  "luminance": 0.07938
}

Semantic roles & 50–950 ramp

primary
#831D97
secondary
#62C04F
accent
#EB3D5A
background
#FAF6FB
surface
#F5EBF6
border
#CFC6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #831D97

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

Preview Lab → · Contrast checker → · Palette generator →

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