#831A8A#831A8A

#831A8A is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.5% C 0.186 H 325.3°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#831A8A
RGBrgb(131, 26, 138)
HSLhsl(296, 68%, 32%)
HSVhsv(296, 81%, 54%)
CMYKcmyk(5.1%, 81.2%, 0%, 45.9%)
CIE-LABlab(32.70, 56.12, -38.03)
CIE-LCHlch(32.70, 67.79, 325.87°)
OKLaboklab(44.46% 0.1529 -0.106)
OKLCHoklch(44.46% 0.186 325.3)
XYZxyz(14.3166, 7.4000, 24.7141)
Luminance0.0740 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831A8A #218A1A
analogous
#4B1A8A #831A8A #8A1A59
triadic
#831A8A #8A831A #1A8A83
tetradic
#831A8A #8A4B1A #218A1A #1A598A
square
#831A8A #8A4B1A #218A1A #1A598A
split-complementary
#831A8A #598A1A #1A8A4B
monochromatic
#210723 #521057 #831A8A #B424BD #D243DC

Accessibility & contrast

On white

8.47
#831A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#831A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831A8A
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831A8A#FFFFFF#000000##FFFFFF
##831A8A1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#345187
Tritanopia (blue-blind)
#863053
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #831a8a;
/* rgb */ color: rgb(131, 26, 138);
/* oklch */ color: oklch(44.5% 0.186 325.3);
Tailwind
colors: {
  custom: {
    50: '#ab65ad',
    500: '#831a8a',
    950: '#000000',
  },
}
SCSS
$custom: #831a8a;
$custom-light: #ab65ad;
$custom-dark: #000000;
JSON
{
  "hex": "#831a8a",
  "rgb": {
    "r": 131,
    "g": 26,
    "b": 138
  },
  "hsl": {
    "h": 296.25,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.44456,
    "c": 0.18606,
    "h": 325.3
  },
  "luminance": 0.07399
}

Semantic roles & 50–950 ramp

primary
#831A8A
secondary
#4BBD43
accent
#EB3D48
background
#FAF6FA
surface
#F5EBF4
border
#CFC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #831A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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