#831F7F#831F7F

#831F7F is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.1% C 0.172 H 329.8°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#831F7F
RGBrgb(131, 31, 127)
HSLhsl(302, 62%, 32%)
HSVhsv(302, 76%, 51%)
CMYKcmyk(0%, 76.3%, 3.1%, 48.6%)
CIE-LABlab(32.57, 52.70, -31.40)
CIE-LCHlch(32.57, 61.34, 329.22°)
OKLaboklab(44.15% 0.149 -0.0867)
OKLCHoklch(44.15% 0.172 329.8)
XYZxyz(13.6807, 7.3386, 20.7705)
Luminance0.0734 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831F7F #1F8323
analogous
#551F83 #831F7F #831F4D
triadic
#831F7F #7F831F #1F7F83
tetradic
#831F7F #83551F #1F8323 #1F4D83
square
#831F7F #83551F #1F8323 #1F4D83
split-complementary
#831F7F #4D831F #1F8355
monochromatic
#20081F #52134F #831F7F #B42BAF #D449CE

Accessibility & contrast

On white

8.51
#831F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#831F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831F7F
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831F7F#FFFFFF#000000##FFFFFF
##831F7F1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114482
Deuteranopia (green-blind)
#3D517D
Tritanopia (blue-blind)
#882D4D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #831f7f;
/* rgb */ color: rgb(131, 31, 127);
/* oklch */ color: oklch(44.1% 0.172 329.8);
Tailwind
colors: {
  custom: {
    50: '#aa66a4',
    500: '#831f7f',
    950: '#000000',
  },
}
SCSS
$custom: #831f7f;
$custom-light: #aa66a4;
$custom-dark: #000000;
JSON
{
  "hex": "#831f7f",
  "rgb": {
    "r": 131,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 302.4,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.44146,
    "c": 0.17239,
    "h": 329.8
  },
  "luminance": 0.07338
}

Semantic roles & 50–950 ramp

primary
#831F7F
secondary
#48B64C
accent
#E54943
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #831F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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