#831AB4#831AB4

#831AB4 is a mid, highly saturated purple. Relative luminance 0.089; OKLCH L 47.5% C 0.221 H 311.1°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#831AB4
RGBrgb(131, 26, 180)
HSLhsl(281, 75%, 40%)
HSVhsv(281, 86%, 71%)
CMYKcmyk(27.2%, 85.6%, 0%, 29.4%)
CIE-LABlab(35.71, 64.05, -58.63)
CIE-LCHlch(35.71, 86.83, 317.53°)
OKLaboklab(47.52% 0.1451 -0.1664)
OKLCHoklch(47.52% 0.221 311.1)
XYZxyz(17.9661, 8.8598, 43.9349)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831AB4 #4BB41A
analogous
#361AB4 #831AB4 #B41A98
triadic
#831AB4 #B4831A #1AB483
tetradic
#831AB4 #B4361A #4BB41A #1A98B4
square
#831AB4 #B4361A #4BB41A #1A98B4
split-complementary
#831AB4 #98B41A #1AB436
monochromatic
#350B49 #5C127F #831AB4 #A72BE0 #BD60E8

Accessibility & contrast

On white

7.58
#831AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#831AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831AB4
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831AB4#FFFFFF#000000##FFFFFF
##831AB41.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B8
Deuteranopia (green-blind)
#0056B1
Tritanopia (blue-blind)
#7C456B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #831ab4;
/* rgb */ color: rgb(131, 26, 180);
/* oklch */ color: oklch(47.5% 0.221 311.1);
Tailwind
colors: {
  custom: {
    50: '#ad67cb',
    500: '#831ab4',
    950: '#000000',
  },
}
SCSS
$custom: #831ab4;
$custom-light: #ad67cb;
$custom-dark: #000000;
JSON
{
  "hex": "#831ab4",
  "rgb": {
    "r": 131,
    "g": 26,
    "b": 180
  },
  "hsl": {
    "h": 280.909,
    "s": 74.757,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47517,
    "c": 0.2208,
    "h": 311.1
  },
  "luminance": 0.08859
}

Semantic roles & 50–950 ramp

primary
#831AB4
secondary
#81CC5D
accent
#F13672
background
#FBF6FC
surface
#F6EBF9
border
#D0C6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #831AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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