#831878#831878

#831878 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.2% C 0.174 H 332.9°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#831878
RGBrgb(131, 24, 120)
HSLhsl(306, 69%, 30%)
HSVhsv(306, 82%, 51%)
CMYKcmyk(0%, 81.7%, 8.4%, 48.6%)
CIE-LABlab(31.43, 53.68, -28.79)
CIE-LCHlch(31.43, 60.92, 331.80°)
OKLaboklab(43.21% 0.155 -0.0791)
OKLCHoklch(43.21% 0.174 332.9)
XYZxyz(13.0770, 6.8358, 18.3964)
Luminance0.0683 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831878 #188323
analogous
#581883 #831878 #831843
triadic
#831878 #788318 #187883
tetradic
#831878 #835818 #188323 #184383
square
#831878 #835818 #188323 #184383
split-complementary
#831878 #438318 #188358
monochromatic
#1C0519 #4F0F49 #831878 #B721A7 #DB3ACA

Accessibility & contrast

On white

8.87
#831878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#831878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831878
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831878#FFFFFF#000000##FFFFFF
##8318781.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11407A
Deuteranopia (green-blind)
#3E4F76
Tritanopia (blue-blind)
#892548
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #831878;
/* rgb */ color: rgb(131, 24, 120);
/* oklch */ color: oklch(43.2% 0.174 332.9);
Tailwind
colors: {
  custom: {
    50: '#ab639f',
    500: '#831878',
    950: '#000000',
  },
}
SCSS
$custom: #831878;
$custom-light: #ab639f;
$custom-dark: #000000;
JSON
{
  "hex": "#831878",
  "rgb": {
    "r": 131,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 306.168,
    "s": 69.032,
    "l": 30.392
  },
  "oklch": {
    "l": 0.43205,
    "c": 0.17403,
    "h": 332.9
  },
  "luminance": 0.06835
}

Semantic roles & 50–950 ramp

primary
#831878
secondary
#40B74C
accent
#EC4E3C
background
#FAF6F9
surface
#F5EBF2
border
#CFC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #831878

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

Preview Lab → · Contrast checker → · Palette generator →

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