#831B7C#831B7C

#831B7C is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.7% C 0.174 H 331.1°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#831B7C
RGBrgb(131, 27, 124)
HSLhsl(304, 66%, 31%)
HSVhsv(304, 79%, 51%)
CMYKcmyk(0%, 79.4%, 5.3%, 48.6%)
CIE-LABlab(31.96, 53.46, -30.48)
CIE-LCHlch(31.96, 61.54, 330.31°)
OKLaboklab(43.65% 0.1526 -0.0841)
OKLCHoklch(43.65% 0.174 331.1)
XYZxyz(13.3901, 7.0655, 19.7234)
Luminance0.0706 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831B7C #1B8322
analogous
#561B83 #831B7C #831B48
triadic
#831B7C #7C831B #1B7C83
tetradic
#831B7C #83561B #1B8322 #1B4883
square
#831B7C #83561B #1B8322 #1B4883
split-complementary
#831B7C #48831B #1B8356
monochromatic
#1E061C #50114C #831B7C #B625AC #D841CE

Accessibility & contrast

On white

8.70
#831B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#831B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831B7C
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831B7C#FFFFFF#000000##FFFFFF
##831B7C1.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #831b7c;
/* rgb */ color: rgb(131, 27, 124);
/* oklch */ color: oklch(43.7% 0.174 331.1);
Tailwind
colors: {
  custom: {
    50: '#ab65a2',
    500: '#831b7c',
    950: '#000000',
  },
}
SCSS
$custom: #831b7c;
$custom-light: #ab65a2;
$custom-dark: #000000;
JSON
{
  "hex": "#831b7c",
  "rgb": {
    "r": 131,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 304.038,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.43654,
    "c": 0.17419,
    "h": 331.1
  },
  "luminance": 0.07064
}

Semantic roles & 50–950 ramp

primary
#831B7C
secondary
#43B64B
accent
#E94A3F
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #831B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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