#831F8A#831F8A

#831F8A is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.181 H 325.1°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#831F8A
RGBrgb(131, 31, 138)
HSLhsl(296, 63%, 33%)
HSVhsv(296, 78%, 54%)
CMYKcmyk(5.1%, 77.5%, 0%, 45.9%)
CIE-LABlab(33.22, 54.61, -37.20)
CIE-LCHlch(33.22, 66.07, 325.74°)
OKLaboklab(44.83% 0.1487 -0.1036)
OKLCHoklch(44.83% 0.181 325.1)
XYZxyz(14.4372, 7.6412, 24.7543)
Luminance0.0764 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831F8A #268A1F
analogous
#4D1F8A #831F8A #8A1F5B
triadic
#831F8A #8A831F #1F8A83
tetradic
#831F8A #8A4D1F #268A1F #1F5B8A
square
#831F8A #8A4D1F #268A1F #1F5B8A
split-complementary
#831F8A #5B8A1F #1F8A4D
monochromatic
#240926 #541458 #831F8A #B22ABC #CE4CD7

Accessibility & contrast

On white

8.31
#831F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#831F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831F8A
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831F8A#FFFFFF#000000##FFFFFF
##831F8A1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#365287
Tritanopia (blue-blind)
#863254
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #831f8a;
/* rgb */ color: rgb(131, 31, 138);
/* oklch */ color: oklch(44.8% 0.181 325.1);
Tailwind
colors: {
  custom: {
    50: '#ab67ad',
    500: '#831f8a',
    950: '#000000',
  },
}
SCSS
$custom: #831f8a;
$custom-light: #ab67ad;
$custom-dark: #000000;
JSON
{
  "hex": "#831f8a",
  "rgb": {
    "r": 131,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 296.075,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44828,
    "c": 0.18125,
    "h": 325.1
  },
  "luminance": 0.0764
}

Semantic roles & 50–950 ramp

primary
#831F8A
secondary
#52BA4B
accent
#E6414C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #831F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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