#831B8E#831B8E

#831B8E is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.188 H 323.7°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#831B8E
RGBrgb(131, 27, 142)
HSLhsl(294, 68%, 33%)
HSVhsv(294, 81%, 56%)
CMYKcmyk(7.7%, 81%, 0%, 44.3%)
CIE-LABlab(33.06, 56.54, -39.94)
CIE-LCHlch(33.06, 69.22, 324.76°)
OKLaboklab(44.79% 0.1518 -0.1116)
OKLCHoklch(44.79% 0.188 323.7)
XYZxyz(14.6341, 7.5631, 26.2750)
Luminance0.0756 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831B8E #268E1B
analogous
#491B8E #831B8E #8E1B5F
triadic
#831B8E #8E831B #1B8E83
tetradic
#831B8E #8E491B #268E1B #1B5F8E
square
#831B8E #8E491B #268E1B #1B5F8E
split-complementary
#831B8E #5F8E1B #1B8E49
monochromatic
#240727 #54115B #831B8E #B225C1 #CE47DC

Accessibility & contrast

On white

8.36
#831B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #831B8E
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831B8E#FFFFFF#000000##FFFFFF
##831B8E1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#31528B
Tritanopia (blue-blind)
#853255
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #831b8e;
/* rgb */ color: rgb(131, 27, 142);
/* oklch */ color: oklch(44.8% 0.188 323.7);
Tailwind
colors: {
  custom: {
    50: '#ab66b0',
    500: '#831b8e',
    950: '#000000',
  },
}
SCSS
$custom: #831b8e;
$custom-light: #ab66b0;
$custom-dark: #000000;
JSON
{
  "hex": "#831b8e",
  "rgb": {
    "r": 131,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 294.261,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.4479,
    "c": 0.18837,
    "h": 323.7
  },
  "luminance": 0.07562
}

Semantic roles & 50–950 ramp

primary
#831B8E
secondary
#52BE47
accent
#EB3D4E
background
#FAF6FA
surface
#F5EBF5
border
#CFC6CF
text
#110610
muted
#807A7F

Preview Lab

Preview with #831B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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