#831D8E#831D8E

#831D8E is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.9% C 0.187 H 323.6°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#831D8E
RGBrgb(131, 29, 142)
HSLhsl(294, 66%, 34%)
HSVhsv(294, 80%, 56%)
CMYKcmyk(7.7%, 79.6%, 0%, 44.3%)
CIE-LABlab(33.26, 55.95, -39.61)
CIE-LCHlch(33.26, 68.55, 324.70°)
OKLaboklab(44.93% 0.1502 -0.1106)
OKLCHoklch(44.93% 0.187 323.6)
XYZxyz(14.6815, 7.6579, 26.2908)
Luminance0.0766 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831D8E #288E1D
analogous
#4A1D8E #831D8E #8E1D60
triadic
#831D8E #8E831D #1D8E83
tetradic
#831D8E #8E4A1D #288E1D #1D608E
square
#831D8E #8E4A1D #288E1D #1D608E
split-complementary
#831D8E #608E1D #1D8E4A
monochromatic
#250828 #54135B #831D8E #B227C1 #CC4BDA

Accessibility & contrast

On white

8.30
#831D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #831D8E
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831D8E#FFFFFF#000000##FFFFFF
##831D8E1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#32528B
Tritanopia (blue-blind)
#853355
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #831d8e;
/* rgb */ color: rgb(131, 29, 142);
/* oklch */ color: oklch(44.9% 0.187 323.6);
Tailwind
colors: {
  custom: {
    50: '#ab66b0',
    500: '#831d8e',
    950: '#000000',
  },
}
SCSS
$custom: #831d8e;
$custom-light: #ab66b0;
$custom-dark: #000000;
JSON
{
  "hex": "#831d8e",
  "rgb": {
    "r": 131,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 294.159,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44934,
    "c": 0.18652,
    "h": 323.6
  },
  "luminance": 0.07657
}

Semantic roles & 50–950 ramp

primary
#831D8E
secondary
#55BD4A
accent
#E93F4F
background
#FAF6FA
surface
#F5EBF5
border
#CFC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #831D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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