#831F8B#831F8B

#831F8B is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.9% C 0.182 H 324.7°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#831F8B
RGBrgb(131, 31, 139)
HSLhsl(296, 64%, 33%)
HSVhsv(296, 78%, 55%)
CMYKcmyk(5.8%, 77.7%, 0%, 45.5%)
CIE-LABlab(33.29, 54.78, -37.72)
CIE-LCHlch(33.29, 66.51, 325.45°)
OKLaboklab(44.89% 0.1487 -0.1051)
OKLCHoklch(44.89% 0.182 324.7)
XYZxyz(14.5099, 7.6703, 25.1374)
Luminance0.0767 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831F8B #278B1F
analogous
#4D1F8B #831F8B #8B1F5D
triadic
#831F8B #8B831F #1F8B83
tetradic
#831F8B #8B4D1F #278B1F #1F5D8B
square
#831F8B #8B4D1F #278B1F #1F5D8B
split-complementary
#831F8B #5D8B1F #1F8B4D
monochromatic
#250927 #541459 #831F8B #B22ABD #CD4DD7

Accessibility & contrast

On white

8.29
#831F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#831F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831F8B
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831F8B#FFFFFF#000000##FFFFFF
##831F8B1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#365288
Tritanopia (blue-blind)
#863354
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #831f8b;
/* rgb */ color: rgb(131, 31, 139);
/* oklch */ color: oklch(44.9% 0.182 324.7);
Tailwind
colors: {
  custom: {
    50: '#ab67ad',
    500: '#831f8b',
    950: '#000000',
  },
}
SCSS
$custom: #831f8b;
$custom-light: #ab67ad;
$custom-dark: #000000;
JSON
{
  "hex": "#831f8b",
  "rgb": {
    "r": 131,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 295.556,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.44892,
    "c": 0.18208,
    "h": 324.7
  },
  "luminance": 0.07669
}

Semantic roles & 50–950 ramp

primary
#831F8B
secondary
#54BA4C
accent
#E7414D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #831F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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