#831F96#831F96

#831F96 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.6% C 0.191 H 320.5°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#831F96
RGBrgb(131, 31, 150)
HSLhsl(290, 66%, 35%)
HSVhsv(290, 79%, 59%)
CMYKcmyk(12.7%, 79.3%, 0%, 41.2%)
CIE-LABlab(34.00, 56.80, -43.33)
CIE-LCHlch(34.00, 71.44, 322.66°)
OKLaboklab(45.63% 0.1476 -0.1216)
OKLCHoklch(45.63% 0.191 320.5)
XYZxyz(15.3544, 8.0081, 29.5852)
Luminance0.0801 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831F96 #32961F
analogous
#471F96 #831F96 #961F6D
triadic
#831F96 #96831F #1F9683
tetradic
#831F96 #96471F #32961F #1F6D96
square
#831F96 #96471F #32961F #1F6D96
split-complementary
#831F96 #6D961F #1F9647
monochromatic
#2A0A31 #571563 #831F96 #AF29C9 #C654DC

Accessibility & contrast

On white

8.07
#831F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#831F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831F96
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831F96#FFFFFF#000000##FFFFFF
##831F961.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004999
Deuteranopia (green-blind)
#2C5393
Tritanopia (blue-blind)
#84385A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #831f96;
/* rgb */ color: rgb(131, 31, 150);
/* oklch */ color: oklch(45.6% 0.191 320.5);
Tailwind
colors: {
  custom: {
    50: '#ab67b5',
    500: '#831f96',
    950: '#000000',
  },
}
SCSS
$custom: #831f96;
$custom-light: #ab67b5;
$custom-dark: #000000;
JSON
{
  "hex": "#831f96",
  "rgb": {
    "r": 131,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 290.42,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45626,
    "c": 0.19124,
    "h": 320.5
  },
  "luminance": 0.08007
}

Semantic roles & 50–950 ramp

primary
#831F96
secondary
#63BF52
accent
#E93F5A
background
#FAF6FB
surface
#F5EBF6
border
#CFC6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #831F96

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

Preview Lab → · Contrast checker → · Palette generator →

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