#831FB4#831FB4

#831FB4 is a mid, highly saturated purple. Relative luminance 0.091; OKLCH L 47.8% C 0.217 H 310.8°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#831FB4
RGBrgb(131, 31, 180)
HSLhsl(280, 71%, 41%)
HSVhsv(280, 83%, 71%)
CMYKcmyk(27.2%, 82.8%, 0%, 29.4%)
CIE-LABlab(36.18, 62.69, -57.87)
CIE-LCHlch(36.18, 85.32, 317.29°)
OKLaboklab(47.84% 0.1419 -0.1642)
OKLCHoklch(47.84% 0.217 310.8)
XYZxyz(18.0867, 9.1010, 43.9751)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831FB4 #50B41F
analogous
#381FB4 #831FB4 #B41F9B
triadic
#831FB4 #B4831F #1FB483
tetradic
#831FB4 #B4381F #50B41F #1F9BB4
square
#831FB4 #B4381F #50B41F #1F9BB4
split-complementary
#831FB4 #9BB41F #1FB438
monochromatic
#370D4C #5D1680 #831FB4 #A534DC #BC68E5

Accessibility & contrast

On white

7.45
#831FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#831FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831FB4
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831FB4#FFFFFF#000000##FFFFFF
##831FB41.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B8
Deuteranopia (green-blind)
#0057B1
Tritanopia (blue-blind)
#7C476C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #831fb4;
/* rgb */ color: rgb(131, 31, 180);
/* oklch */ color: oklch(47.8% 0.217 310.8);
Tailwind
colors: {
  custom: {
    50: '#ac69cb',
    500: '#831fb4',
    950: '#000000',
  },
}
SCSS
$custom: #831fb4;
$custom-light: #ac69cb;
$custom-dark: #000000;
JSON
{
  "hex": "#831fb4",
  "rgb": {
    "r": 131,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 280.268,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4784,
    "c": 0.21704,
    "h": 310.8
  },
  "luminance": 0.09101
}

Semantic roles & 50–950 ramp

primary
#831FB4
secondary
#86CB64
accent
#ED3A75
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110713
muted
#807A82

Preview Lab

Preview with #831FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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