#831D8F#831D8F

#831D8F is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.187 H 323.2°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#831D8F
RGBrgb(131, 29, 143)
HSLhsl(294, 66%, 34%)
HSVhsv(294, 80%, 56%)
CMYKcmyk(8.4%, 79.7%, 0%, 43.9%)
CIE-LABlab(33.32, 56.13, -40.12)
CIE-LCHlch(33.32, 68.99, 324.44°)
OKLaboklab(45% 0.1501 -0.1121)
OKLCHoklch(45% 0.187 323.2)
XYZxyz(14.7569, 7.6881, 26.6880)
Luminance0.0769 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831D8F #298F1D
analogous
#4A1D8F #831D8F #8F1D62
triadic
#831D8F #8F831D #1D8F83
tetradic
#831D8F #8F4A1D #298F1D #1D628F
square
#831D8F #8F4A1D #298F1D #1D628F
split-complementary
#831D8F #628F1D #1D8F4A
monochromatic
#260829 #54135C #831D8F #B227C2 #CC4CDB

Accessibility & contrast

On white

8.28
#831D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#831D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831D8F
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831D8F#FFFFFF#000000##FFFFFF
##831D8F1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#32528C
Tritanopia (blue-blind)
#853456
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #831d8f;
/* rgb */ color: rgb(131, 29, 143);
/* oklch */ color: oklch(45.0% 0.187 323.2);
Tailwind
colors: {
  custom: {
    50: '#ab66b0',
    500: '#831d8f',
    950: '#000000',
  },
}
SCSS
$custom: #831d8f;
$custom-light: #ab66b0;
$custom-dark: #000000;
JSON
{
  "hex": "#831d8f",
  "rgb": {
    "r": 131,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 293.684,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45001,
    "c": 0.18734,
    "h": 323.2
  },
  "luminance": 0.07687
}

Semantic roles & 50–950 ramp

primary
#831D8F
secondary
#57BD4B
accent
#E93F51
background
#FAF6FA
surface
#F5EBF5
border
#CFC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #831D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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