#831F74#831F74

#831F74 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.5% C 0.164 H 334.9°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#831F74
RGBrgb(131, 31, 116)
HSLhsl(309, 62%, 32%)
HSVhsv(309, 76%, 51%)
CMYKcmyk(0%, 76.3%, 11.5%, 48.6%)
CIE-LABlab(31.96, 50.91, -25.42)
CIE-LCHlch(31.96, 56.90, 333.46°)
OKLaboklab(43.52% 0.1485 -0.0695)
OKLCHoklch(43.52% 0.164 334.9)
XYZxyz(13.0026, 7.0674, 17.1989)
Luminance0.0707 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831F74 #1F832E
analogous
#601F83 #831F74 #831F42
triadic
#831F74 #74831F #1F7483
tetradic
#831F74 #83601F #1F832E #1F4283
square
#831F74 #83601F #1F832E #1F4283
split-complementary
#831F74 #42831F #1F8360
monochromatic
#20081C #521348 #831F74 #B42BA0 #D449BF

Accessibility & contrast

On white

8.70
#831F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#831F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831F74
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831F74#FFFFFF#000000##FFFFFF
##831F741.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4276
Deuteranopia (green-blind)
#435072
Tritanopia (blue-blind)
#8A2747
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #831f74;
/* rgb */ color: rgb(131, 31, 116);
/* oklch */ color: oklch(43.5% 0.164 334.9);
Tailwind
colors: {
  custom: {
    50: '#aa669c',
    500: '#831f74',
    950: '#000000',
  },
}
SCSS
$custom: #831f74;
$custom-light: #aa669c;
$custom-dark: #000000;
JSON
{
  "hex": "#831f74",
  "rgb": {
    "r": 131,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 309,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43515,
    "c": 0.16393,
    "h": 334.9
  },
  "luminance": 0.07066
}

Semantic roles & 50–950 ramp

primary
#831F74
secondary
#48B659
accent
#E55B43
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #831F74

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

Preview Lab → · Contrast checker → · Palette generator →

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