#831778#831778

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

Color values

HEX#831778
RGBrgb(131, 23, 120)
HSLhsl(306, 70%, 30%)
HSVhsv(306, 82%, 51%)
CMYKcmyk(0%, 82.4%, 8.4%, 48.6%)
CIE-LABlab(31.34, 53.95, -28.94)
CIE-LCHlch(31.34, 61.22, 331.79°)
OKLaboklab(43.14% 0.1558 -0.0796)
OKLCHoklch(43.14% 0.175 332.9)
XYZxyz(13.0567, 6.7953, 18.3896)
Luminance0.0679 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831778 #178322
analogous
#581783 #831778 #831742
triadic
#831778 #788317 #177883
tetradic
#831778 #835817 #178322 #174283
square
#831778 #835817 #178322 #174283
split-complementary
#831778 #428317 #178358
monochromatic
#1B0519 #4F0E48 #831778 #B720A8 #DC38CB

Accessibility & contrast

On white

8.90
#831778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#831778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831778
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831778#FFFFFF#000000##FFFFFF
##8317781.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #831778;
/* rgb */ color: rgb(131, 23, 120);
/* oklch */ color: oklch(43.1% 0.175 332.9);
Tailwind
colors: {
  custom: {
    50: '#ab639f',
    500: '#831778',
    950: '#000000',
  },
}
SCSS
$custom: #831778;
$custom-light: #ab639f;
$custom-dark: #000000;
JSON
{
  "hex": "#831778",
  "rgb": {
    "r": 131,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 306.111,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.43138,
    "c": 0.17493,
    "h": 332.9
  },
  "luminance": 0.06794
}

Semantic roles & 50–950 ramp

primary
#831778
secondary
#3FB74B
accent
#ED4D3B
background
#FAF6F9
surface
#F5EBF2
border
#CFC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #831778

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

Preview Lab → · Contrast checker → · Palette generator →

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