#831A97#831A97

#831A97 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.3% C 0.197 H 320.4°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#831A97
RGBrgb(131, 26, 151)
HSLhsl(290, 71%, 35%)
HSVhsv(290, 83%, 59%)
CMYKcmyk(13.2%, 82.8%, 0%, 40.8%)
CIE-LABlab(33.56, 58.45, -44.65)
CIE-LCHlch(33.56, 73.55, 322.62°)
OKLaboklab(45.34% 0.1514 -0.1254)
OKLCHoklch(45.34% 0.197 320.4)
XYZxyz(15.3147, 7.7993, 29.9709)
Luminance0.0780 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831A97 #2E971A
analogous
#451A97 #831A97 #971A6D
triadic
#831A97 #97831A #1A9783
tetradic
#831A97 #97451A #2E971A #1A6D97
square
#831A97 #97451A #2E971A #1A6D97
split-complementary
#831A97 #6D971A #1A9745
monochromatic
#28082F #561163 #831A97 #B023CB #C84BE0

Accessibility & contrast

On white

8.20
#831A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #831A97
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831A97#FFFFFF#000000##FFFFFF
##831A971.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#295294
Tritanopia (blue-blind)
#83365A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #831a97;
/* rgb */ color: rgb(131, 26, 151);
/* oklch */ color: oklch(45.3% 0.197 320.4);
Tailwind
colors: {
  custom: {
    50: '#ab66b6',
    500: '#831a97',
    950: '#000000',
  },
}
SCSS
$custom: #831a97;
$custom-light: #ab66b6;
$custom-dark: #000000;
JSON
{
  "hex": "#831a97",
  "rgb": {
    "r": 131,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 290.4,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.45338,
    "c": 0.19657,
    "h": 320.4
  },
  "luminance": 0.07798
}

Semantic roles & 50–950 ramp

primary
#831A97
secondary
#5EC24B
accent
#ED3A57
background
#FAF6FB
surface
#F5EBF6
border
#CFC6D0
text
#110611
muted
#807A80

Preview Lab

Preview with #831A97

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

Preview Lab → · Contrast checker → · Palette generator →

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