#831CA8#831CA8

#831CA8 is a mid, highly saturated purple. Relative luminance 0.085; OKLCH L 46.7% C 0.209 H 314.6°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#831CA8
RGBrgb(131, 28, 168)
HSLhsl(284, 71%, 38%)
HSVhsv(284, 83%, 66%)
CMYKcmyk(22%, 83.3%, 0%, 34.1%)
CIE-LABlab(34.97, 61.14, -52.67)
CIE-LCHlch(34.97, 80.70, 319.26°)
OKLaboklab(46.71% 0.1468 -0.1489)
OKLCHoklch(46.71% 0.209 314.6)
XYZxyz(16.8420, 8.4836, 37.7885)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831CA8 #41A81C
analogous
#3D1CA8 #831CA8 #A81C87
triadic
#831CA8 #A8831C #1CA883
tetradic
#831CA8 #A83D1C #41A81C #1C87A8
square
#831CA8 #A83D1C #41A81C #1C87A8
split-complementary
#831CA8 #87A81C #1CA83D
monochromatic
#310B3F #5A1374 #831CA8 #AB26DB #BF5BE4

Accessibility & contrast

On white

7.79
#831CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#831CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831CA8
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831CA8#FFFFFF#000000##FFFFFF
##831CA81.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#0D55A5
Tritanopia (blue-blind)
#804064
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #831ca8;
/* rgb */ color: rgb(131, 28, 168);
/* oklch */ color: oklch(46.7% 0.209 314.6);
Tailwind
colors: {
  custom: {
    50: '#ac67c3',
    500: '#831ca8',
    950: '#000000',
  },
}
SCSS
$custom: #831ca8;
$custom-light: #ac67c3;
$custom-dark: #000000;
JSON
{
  "hex": "#831ca8",
  "rgb": {
    "r": 131,
    "g": 28,
    "b": 168
  },
  "hsl": {
    "h": 284.143,
    "s": 71.429,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46711,
    "c": 0.20912,
    "h": 314.6
  },
  "luminance": 0.08483
}

Semantic roles & 50–950 ramp

primary
#831CA8
secondary
#76C758
accent
#EE3A69
background
#FBF6FC
surface
#F6EBF8
border
#D0C6D1
text
#110712
muted
#807A81

Preview Lab

Preview with #831CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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