#831C8C#831C8C

#831C8C is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.7% C 0.186 H 324.4°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#831C8C
RGBrgb(131, 28, 140)
HSLhsl(295, 67%, 33%)
HSVhsv(295, 80%, 55%)
CMYKcmyk(6.4%, 80%, 0%, 45.1%)
CIE-LABlab(33.03, 55.89, -38.75)
CIE-LCHlch(33.03, 68.01, 325.27°)
OKLaboklab(44.73% 0.1511 -0.1081)
OKLCHoklch(44.73% 0.186 324.4)
XYZxyz(14.5086, 7.5502, 25.4990)
Luminance0.0755 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831C8C #258C1C
analogous
#4B1C8C #831C8C #8C1C5D
triadic
#831C8C #8C831C #1C8C83
tetradic
#831C8C #8C4B1C #258C1C #1C5D8C
square
#831C8C #8C4B1C #258C1C #1C5D8C
split-complementary
#831C8C #5D8C1C #1C8C4B
monochromatic
#240826 #531259 #831C8C #B326BF #CF48DA

Accessibility & contrast

On white

8.37
#831C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#831C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831C8C
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831C8C#FFFFFF#000000##FFFFFF
##831C8C1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#335289
Tritanopia (blue-blind)
#863254
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #831c8c;
/* rgb */ color: rgb(131, 28, 140);
/* oklch */ color: oklch(44.7% 0.186 324.4);
Tailwind
colors: {
  custom: {
    50: '#ab66ae',
    500: '#831c8c',
    950: '#000000',
  },
}
SCSS
$custom: #831c8c;
$custom-light: #ab66ae;
$custom-dark: #000000;
JSON
{
  "hex": "#831c8c",
  "rgb": {
    "r": 131,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 295.179,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44729,
    "c": 0.18583,
    "h": 324.4
  },
  "luminance": 0.07549
}

Semantic roles & 50–950 ramp

primary
#831C8C
secondary
#51BC48
accent
#EA3E4C
background
#FAF6FA
surface
#F5EBF4
border
#CFC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #831C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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