#831E8B#831E8B

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

Color values

HEX#831E8B
RGBrgb(131, 30, 139)
HSLhsl(296, 64%, 33%)
HSVhsv(296, 78%, 55%)
CMYKcmyk(5.8%, 78.4%, 0%, 45.5%)
CIE-LABlab(33.18, 55.10, -37.89)
CIE-LCHlch(33.18, 66.87, 325.49°)
OKLaboklab(44.81% 0.1495 -0.1056)
OKLCHoklch(44.81% 0.183 324.8)
XYZxyz(14.4842, 7.6189, 25.1288)
Luminance0.0762 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831E8B #268B1E
analogous
#4C1E8B #831E8B #8B1E5C
triadic
#831E8B #8B831E #1E8B83
tetradic
#831E8B #8B4C1E #268B1E #1E5C8B
square
#831E8B #8B4C1E #268B1E #1E5C8B
split-complementary
#831E8B #5C8B1E #1E8B4C
monochromatic
#240826 #541359 #831E8B #B229BD #CE4BD8

Accessibility & contrast

On white

8.32
#831E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #831E8B
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831E8B#FFFFFF#000000##FFFFFF
##831E8B1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #831e8b;
/* rgb */ color: rgb(131, 30, 139);
/* oklch */ color: oklch(44.8% 0.183 324.8);
Tailwind
colors: {
  custom: {
    50: '#ab67ad',
    500: '#831e8b',
    950: '#000000',
  },
}
SCSS
$custom: #831e8b;
$custom-light: #ab67ad;
$custom-dark: #000000;
JSON
{
  "hex": "#831e8b",
  "rgb": {
    "r": 131,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 295.596,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44814,
    "c": 0.18308,
    "h": 324.8
  },
  "luminance": 0.07618
}

Semantic roles & 50–950 ramp

primary
#831E8B
secondary
#52BB4A
accent
#E7404D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #831E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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