#831A7C#831A7C

#831A7C is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.6% C 0.175 H 331.1°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#831A7C
RGBrgb(131, 26, 124)
HSLhsl(304, 67%, 31%)
HSVhsv(304, 80%, 51%)
CMYKcmyk(0%, 80.2%, 5.3%, 48.6%)
CIE-LABlab(31.85, 53.76, -30.64)
CIE-LCHlch(31.85, 61.88, 330.32°)
OKLaboklab(43.58% 0.1534 -0.0845)
OKLCHoklch(43.58% 0.175 331.1)
XYZxyz(13.3676, 7.0204, 19.7159)
Luminance0.0702 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831A7C #1A8321
analogous
#551A83 #831A7C #831A47
triadic
#831A7C #7C831A #1A7C83
tetradic
#831A7C #83551A #1A8321 #1A4783
square
#831A7C #83551A #1A8321 #1A4783
split-complementary
#831A7C #47831A #1A8355
monochromatic
#1D061B #50104C #831A7C #B624AC #D93FCF

Accessibility & contrast

On white

8.74
#831A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#831A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831A7C
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831A7C#FFFFFF#000000##FFFFFF
##831A7C1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D427F
Deuteranopia (green-blind)
#3D507A
Tritanopia (blue-blind)
#88284B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #831a7c;
/* rgb */ color: rgb(131, 26, 124);
/* oklch */ color: oklch(43.6% 0.175 331.1);
Tailwind
colors: {
  custom: {
    50: '#ab64a2',
    500: '#831a7c',
    950: '#000000',
  },
}
SCSS
$custom: #831a7c;
$custom-light: #ab64a2;
$custom-dark: #000000;
JSON
{
  "hex": "#831a7c",
  "rgb": {
    "r": 131,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 304,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.43581,
    "c": 0.17515,
    "h": 331.1
  },
  "luminance": 0.07019
}

Semantic roles & 50–950 ramp

primary
#831A7C
secondary
#42B74A
accent
#EA493E
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #831A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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