#831DA8#831DA8

#831DA8 is a mid, highly saturated purple. Relative luminance 0.085; OKLCH L 46.8% C 0.208 H 314.5°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#831DA8
RGBrgb(131, 29, 168)
HSLhsl(284, 71%, 39%)
HSVhsv(284, 83%, 66%)
CMYKcmyk(22%, 82.7%, 0%, 34.1%)
CIE-LABlab(35.07, 60.86, -52.51)
CIE-LCHlch(35.07, 80.38, 319.21°)
OKLaboklab(46.78% 0.1461 -0.1485)
OKLCHoklch(46.78% 0.208 314.5)
XYZxyz(16.8661, 8.5318, 37.7966)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831DA8 #42A81D
analogous
#3D1DA8 #831DA8 #A81D87
triadic
#831DA8 #A8831D #1DA883
tetradic
#831DA8 #A83D1D #42A81D #1D87A8
square
#831DA8 #A83D1D #42A81D #1D87A8
split-complementary
#831DA8 #87A81D #1DA83D
monochromatic
#320B40 #5A1474 #831DA8 #AB28DA #BF5CE3

Accessibility & contrast

On white

7.76
#831DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#831DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831DA8
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831DA8#FFFFFF#000000##FFFFFF
##831DA81.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#0F55A5
Tritanopia (blue-blind)
#7F4064
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #831da8;
/* rgb */ color: rgb(131, 29, 168);
/* oklch */ color: oklch(46.8% 0.208 314.5);
Tailwind
colors: {
  custom: {
    50: '#ac68c3',
    500: '#831da8',
    950: '#000000',
  },
}
SCSS
$custom: #831da8;
$custom-light: #ac68c3;
$custom-dark: #000000;
JSON
{
  "hex": "#831da8",
  "rgb": {
    "r": 131,
    "g": 29,
    "b": 168
  },
  "hsl": {
    "h": 284.029,
    "s": 70.558,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46779,
    "c": 0.20831,
    "h": 314.5
  },
  "luminance": 0.08531
}

Semantic roles & 50–950 ramp

primary
#831DA8
secondary
#77C75A
accent
#ED3A6A
background
#FBF6FC
surface
#F6EBF8
border
#D0C6D1
text
#110712
muted
#807A81

Preview Lab

Preview with #831DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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