#831978#831978

#831978 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.3% C 0.173 H 333.0°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#831978
RGBrgb(131, 25, 120)
HSLhsl(306, 68%, 31%)
HSVhsv(306, 81%, 51%)
CMYKcmyk(0%, 80.9%, 8.4%, 48.6%)
CIE-LABlab(31.53, 53.40, -28.64)
CIE-LCHlch(31.53, 60.60, 331.80°)
OKLaboklab(43.28% 0.1542 -0.0787)
OKLCHoklch(43.28% 0.173 333)
XYZxyz(13.0980, 6.8778, 18.4034)
Luminance0.0688 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831978 #198324
analogous
#591983 #831978 #831943
triadic
#831978 #788319 #197883
tetradic
#831978 #835919 #198324 #194383
square
#831978 #835919 #198324 #194383
split-complementary
#831978 #438319 #198359
monochromatic
#1C051A #500F49 #831978 #B623A7 #DA3DCA

Accessibility & contrast

On white

8.84
#831978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#831978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831978
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831978#FFFFFF#000000##FFFFFF
##8319781.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #831978;
/* rgb */ color: rgb(131, 25, 120);
/* oklch */ color: oklch(43.3% 0.173 333.0);
Tailwind
colors: {
  custom: {
    50: '#ab649f',
    500: '#831978',
    950: '#000000',
  },
}
SCSS
$custom: #831978;
$custom-light: #ab649f;
$custom-dark: #000000;
JSON
{
  "hex": "#831978",
  "rgb": {
    "r": 131,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 306.226,
    "s": 67.949,
    "l": 30.588
  },
  "oklch": {
    "l": 0.43275,
    "c": 0.1731,
    "h": 333
  },
  "luminance": 0.06877
}

Semantic roles & 50–950 ramp

primary
#831978
secondary
#41B74D
accent
#EB4F3D
background
#FAF6F9
surface
#F5EBF2
border
#CFC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #831978

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

Preview Lab → · Contrast checker → · Palette generator →

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