#831BB4#831BB4

#831BB4 is a mid, highly saturated purple. Relative luminance 0.089; OKLCH L 47.6% C 0.220 H 311.0°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#831BB4
RGBrgb(131, 27, 180)
HSLhsl(281, 74%, 41%)
HSVhsv(281, 85%, 71%)
CMYKcmyk(27.2%, 85%, 0%, 29.4%)
CIE-LABlab(35.80, 63.79, -58.49)
CIE-LCHlch(35.80, 86.55, 317.48°)
OKLaboklab(47.58% 0.1445 -0.166)
OKLCHoklch(47.58% 0.22 311)
XYZxyz(17.9886, 8.9049, 43.9424)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831BB4 #4CB41B
analogous
#361BB4 #831BB4 #B41B98
triadic
#831BB4 #B4831B #1BB483
tetradic
#831BB4 #B4361B #4CB41B #1B98B4
square
#831BB4 #B4361B #4CB41B #1B98B4
split-complementary
#831BB4 #98B41B #1BB436
monochromatic
#360B4A #5C137F #831BB4 #A62DDF #BD62E7

Accessibility & contrast

On white

7.55
#831BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#831BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831BB4
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831BB4#FFFFFF#000000##FFFFFF
##831BB41.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.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: #831bb4;
/* rgb */ color: rgb(131, 27, 180);
/* oklch */ color: oklch(47.6% 0.220 311.0);
Tailwind
colors: {
  custom: {
    50: '#ad68cb',
    500: '#831bb4',
    950: '#000000',
  },
}
SCSS
$custom: #831bb4;
$custom-light: #ad68cb;
$custom-dark: #000000;
JSON
{
  "hex": "#831bb4",
  "rgb": {
    "r": 131,
    "g": 27,
    "b": 180
  },
  "hsl": {
    "h": 280.784,
    "s": 73.913,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47578,
    "c": 0.22009,
    "h": 311
  },
  "luminance": 0.08904
}

Semantic roles & 50–950 ramp

primary
#831BB4
secondary
#82CC5F
accent
#F13773
background
#FBF6FC
surface
#F6EBF9
border
#D0C6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #831BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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