#831C8D#831C8D

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

Color values

HEX#831C8D
RGBrgb(131, 28, 141)
HSLhsl(295, 67%, 33%)
HSVhsv(295, 80%, 55%)
CMYKcmyk(7.1%, 80.1%, 0%, 44.7%)
CIE-LABlab(33.09, 56.07, -39.26)
CIE-LCHlch(33.09, 68.45, 325.00°)
OKLaboklab(44.8% 0.1511 -0.1096)
OKLCHoklch(44.8% 0.187 324)
XYZxyz(14.5826, 7.5798, 25.8891)
Luminance0.0758 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831C8D #268D1C
analogous
#4A1C8D #831C8D #8D1C5E
triadic
#831C8D #8D831C #1C8D83
tetradic
#831C8D #8D4A1C #268D1C #1C5E8D
square
#831C8D #8D4A1C #268D1C #1C5E8D
split-complementary
#831C8D #5E8D1C #1C8D4A
monochromatic
#240827 #54125A #831C8D #B226C0 #CE49DB

Accessibility & contrast

On white

8.35
#831C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #831C8D
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831C8D#FFFFFF#000000##FFFFFF
##831C8D1.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#33528A
Tritanopia (blue-blind)
#853255
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #831c8d;
/* rgb */ color: rgb(131, 28, 141);
/* oklch */ color: oklch(44.8% 0.187 324.0);
Tailwind
colors: {
  custom: {
    50: '#ab66af',
    500: '#831c8d',
    950: '#000000',
  },
}
SCSS
$custom: #831c8d;
$custom-light: #ab66af;
$custom-dark: #000000;
JSON
{
  "hex": "#831c8d",
  "rgb": {
    "r": 131,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 294.69,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44795,
    "c": 0.18664,
    "h": 324
  },
  "luminance": 0.07579
}

Semantic roles & 50–950 ramp

primary
#831C8D
secondary
#52BD48
accent
#EA3E4D
background
#FAF6FA
surface
#F5EBF4
border
#CFC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #831C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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