#831A78#831A78

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

Color values

HEX#831A78
RGBrgb(131, 26, 120)
HSLhsl(306, 67%, 31%)
HSVhsv(306, 80%, 51%)
CMYKcmyk(0%, 80.2%, 8.4%, 48.6%)
CIE-LABlab(31.63, 53.11, -28.48)
CIE-LCHlch(31.63, 60.27, 331.80°)
OKLaboklab(43.35% 0.1533 -0.0783)
OKLCHoklch(43.35% 0.172 333)
XYZxyz(13.1197, 6.9213, 18.4106)
Luminance0.0692 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831A78 #1A8325
analogous
#591A83 #831A78 #831A43
triadic
#831A78 #78831A #1A7883
tetradic
#831A78 #83591A #1A8325 #1A4383
square
#831A78 #83591A #1A8325 #1A4383
split-complementary
#831A78 #43831A #1A8359
monochromatic
#1D061A #501049 #831A78 #B624A7 #D93FC9

Accessibility & contrast

On white

8.81
#831A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#831A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831A78
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831A78#FFFFFF#000000##FFFFFF
##831A781.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #831a78;
/* rgb */ color: rgb(131, 26, 120);
/* oklch */ color: oklch(43.3% 0.172 333.0);
Tailwind
colors: {
  custom: {
    50: '#ab649f',
    500: '#831a78',
    950: '#000000',
  },
}
SCSS
$custom: #831a78;
$custom-light: #ab649f;
$custom-dark: #000000;
JSON
{
  "hex": "#831a78",
  "rgb": {
    "r": 131,
    "g": 26,
    "b": 120
  },
  "hsl": {
    "h": 306.286,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.43346,
    "c": 0.17214,
    "h": 333
  },
  "luminance": 0.0692
}

Semantic roles & 50–950 ramp

primary
#831A78
secondary
#42B74E
accent
#EA503E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #831A78

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

Preview Lab → · Contrast checker → · Palette generator →

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