#831872#831872

#831872 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.9% C 0.170 H 335.8°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#831872
RGBrgb(131, 24, 114)
HSLhsl(310, 69%, 30%)
HSVhsv(310, 82%, 51%)
CMYKcmyk(0%, 81.7%, 13%, 48.6%)
CIE-LABlab(31.10, 52.76, -25.50)
CIE-LCHlch(31.10, 58.60, 334.20°)
OKLaboklab(42.86% 0.1547 -0.0697)
OKLCHoklch(42.86% 0.17 335.8)
XYZxyz(12.7242, 6.6947, 16.5384)
Luminance0.0669 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831872 #188329
analogous
#5E1883 #831872 #83183C
triadic
#831872 #728318 #187283
tetradic
#831872 #835E18 #188329 #183C83
square
#831872 #835E18 #188329 #183C83
split-complementary
#831872 #3C8318 #18835E
monochromatic
#1C0518 #4F0F45 #831872 #B7219F #DB3AC1

Accessibility & contrast

On white

8.98
#831872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#831872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831872
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831872#FFFFFF#000000##FFFFFF
##8318721.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193F74
Deuteranopia (green-blind)
#414F70
Tritanopia (blue-blind)
#8A2144
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #831872;
/* rgb */ color: rgb(131, 24, 114);
/* oklch */ color: oklch(42.9% 0.170 335.8);
Tailwind
colors: {
  custom: {
    50: '#ab639b',
    500: '#831872',
    950: '#000000',
  },
}
SCSS
$custom: #831872;
$custom-light: #ab639b;
$custom-dark: #000000;
JSON
{
  "hex": "#831872",
  "rgb": {
    "r": 131,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 309.533,
    "s": 69.032,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42864,
    "c": 0.16968,
    "h": 335.8
  },
  "luminance": 0.06693
}

Semantic roles & 50–950 ramp

primary
#831872
secondary
#40B753
accent
#EC583C
background
#FAF6F9
surface
#F5EBF2
border
#CFC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #831872

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

Preview Lab → · Contrast checker → · Palette generator →

#831872 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva