#831BA8#831BA8

#831BA8 is a mid, highly saturated purple. Relative luminance 0.084; OKLCH L 46.6% C 0.210 H 314.6°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#831BA8
RGBrgb(131, 27, 168)
HSLhsl(284, 72%, 38%)
HSVhsv(284, 84%, 66%)
CMYKcmyk(22%, 83.9%, 0%, 34.1%)
CIE-LABlab(34.88, 61.41, -52.82)
CIE-LCHlch(34.88, 81.00, 319.30°)
OKLaboklab(46.65% 0.1475 -0.1494)
OKLCHoklch(46.65% 0.21 314.6)
XYZxyz(16.8187, 8.4369, 37.7807)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831BA8 #40A81B
analogous
#3C1BA8 #831BA8 #A81B86
triadic
#831BA8 #A8831B #1BA883
tetradic
#831BA8 #A83C1B #40A81B #1B86A8
square
#831BA8 #A83C1B #40A81B #1B86A8
split-complementary
#831BA8 #86A81B #1BA83C
monochromatic
#310A3F #5A1373 #831BA8 #AC24DC #C059E4

Accessibility & contrast

On white

7.81
#831BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#831BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831BA8
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831BA8#FFFFFF#000000##FFFFFF
##831BA81.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#0C54A5
Tritanopia (blue-blind)
#803F64
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #831ba8;
/* rgb */ color: rgb(131, 27, 168);
/* oklch */ color: oklch(46.6% 0.210 314.6);
Tailwind
colors: {
  custom: {
    50: '#ac67c3',
    500: '#831ba8',
    950: '#000000',
  },
}
SCSS
$custom: #831ba8;
$custom-light: #ac67c3;
$custom-dark: #000000;
JSON
{
  "hex": "#831ba8",
  "rgb": {
    "r": 131,
    "g": 27,
    "b": 168
  },
  "hsl": {
    "h": 284.255,
    "s": 72.308,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46646,
    "c": 0.20991,
    "h": 314.6
  },
  "luminance": 0.08436
}

Semantic roles & 50–950 ramp

primary
#831BA8
secondary
#75C857
accent
#EF3969
background
#FBF6FC
surface
#F6EBF8
border
#D0C6D1
text
#110713
muted
#807A82

Preview Lab

Preview with #831BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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