#831CB4#831CB4

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

Color values

HEX#831CB4
RGBrgb(131, 28, 180)
HSLhsl(281, 73%, 41%)
HSVhsv(281, 84%, 71%)
CMYKcmyk(27.2%, 84.4%, 0%, 29.4%)
CIE-LABlab(35.89, 63.53, -58.34)
CIE-LCHlch(35.89, 86.25, 317.44°)
OKLaboklab(47.64% 0.1439 -0.1656)
OKLCHoklch(47.64% 0.219 311)
XYZxyz(18.0119, 8.9515, 43.9501)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831CB4 #4DB41C
analogous
#371CB4 #831CB4 #B41C99
triadic
#831CB4 #B4831C #1CB483
tetradic
#831CB4 #B4371C #4DB41C #1C99B4
square
#831CB4 #B4371C #4DB41C #1C99B4
split-complementary
#831CB4 #99B41C #1CB437
monochromatic
#360C4A #5C147F #831CB4 #A62FDF #BD64E7

Accessibility & contrast

On white

7.53
#831CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#831CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831CB4
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831CB4#FFFFFF#000000##FFFFFF
##831CB41.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #831cb4;
/* rgb */ color: rgb(131, 28, 180);
/* oklch */ color: oklch(47.6% 0.219 311.0);
Tailwind
colors: {
  custom: {
    50: '#ac68cb',
    500: '#831cb4',
    950: '#000000',
  },
}
SCSS
$custom: #831cb4;
$custom-light: #ac68cb;
$custom-dark: #000000;
JSON
{
  "hex": "#831cb4",
  "rgb": {
    "r": 131,
    "g": 28,
    "b": 180
  },
  "hsl": {
    "h": 280.658,
    "s": 73.077,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4764,
    "c": 0.21935,
    "h": 311
  },
  "luminance": 0.08951
}

Semantic roles & 50–950 ramp

primary
#831CB4
secondary
#83CC60
accent
#F03873
background
#FBF6FC
surface
#F6EBF9
border
#D0C6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #831CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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