#831E8A#831E8A

#831E8A is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.7% C 0.182 H 325.2°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#831E8A
RGBrgb(131, 30, 138)
HSLhsl(296, 64%, 33%)
HSVhsv(296, 78%, 54%)
CMYKcmyk(5.1%, 78.3%, 0%, 45.9%)
CIE-LABlab(33.11, 54.92, -37.37)
CIE-LCHlch(33.11, 66.43, 325.77°)
OKLaboklab(44.75% 0.1496 -0.1041)
OKLCHoklch(44.75% 0.182 325.2)
XYZxyz(14.4115, 7.5898, 24.7457)
Luminance0.0759 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831E8A #258A1E
analogous
#4D1E8A #831E8A #8A1E5B
triadic
#831E8A #8A831E #1E8A83
tetradic
#831E8A #8A4D1E #258A1E #1E5B8A
square
#831E8A #8A4D1E #258A1E #1E5B8A
split-complementary
#831E8A #5B8A1E #1E8A4D
monochromatic
#240825 #531358 #831E8A #B329BC #CF4BD8

Accessibility & contrast

On white

8.34
#831E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#831E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831E8A
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831E8A#FFFFFF#000000##FFFFFF
##831E8A1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #831e8a;
/* rgb */ color: rgb(131, 30, 138);
/* oklch */ color: oklch(44.7% 0.182 325.2);
Tailwind
colors: {
  custom: {
    50: '#ab66ad',
    500: '#831e8a',
    950: '#000000',
  },
}
SCSS
$custom: #831e8a;
$custom-light: #ab66ad;
$custom-dark: #000000;
JSON
{
  "hex": "#831e8a",
  "rgb": {
    "r": 131,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 296.111,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44749,
    "c": 0.18227,
    "h": 325.2
  },
  "luminance": 0.07589
}

Semantic roles & 50–950 ramp

primary
#831E8A
secondary
#51BA4A
accent
#E7414B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #831E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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