#831CA7#831CA7

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

Color values

HEX#831CA7
RGBrgb(131, 28, 167)
HSLhsl(284, 71%, 38%)
HSVhsv(284, 83%, 65%)
CMYKcmyk(21.6%, 83.2%, 0%, 34.5%)
CIE-LABlab(34.90, 60.94, -52.19)
CIE-LCHlch(34.90, 80.23, 319.42°)
OKLaboklab(46.64% 0.147 -0.1475)
OKLCHoklch(46.64% 0.208 314.9)
XYZxyz(16.7492, 8.4465, 37.2998)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831CA7 #40A71C
analogous
#3D1CA7 #831CA7 #A71C85
triadic
#831CA7 #A7831C #1CA783
tetradic
#831CA7 #A73D1C #40A71C #1C85A7
square
#831CA7 #A73D1C #40A71C #1C85A7
split-complementary
#831CA7 #85A71C #1CA73D
monochromatic
#310A3E #5A1373 #831CA7 #AC26DB #C05AE3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##831CA7#FFFFFF#000000##FFFFFF
##831CA71.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)
#004DAB
Deuteranopia (green-blind)
#1054A4
Tritanopia (blue-blind)
#803F64
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #831ca7;
/* rgb */ color: rgb(131, 28, 167);
/* oklch */ color: oklch(46.6% 0.208 314.9);
Tailwind
colors: {
  custom: {
    50: '#ac67c2',
    500: '#831ca7',
    950: '#000000',
  },
}
SCSS
$custom: #831ca7;
$custom-light: #ac67c2;
$custom-dark: #000000;
JSON
{
  "hex": "#831ca7",
  "rgb": {
    "r": 131,
    "g": 28,
    "b": 167
  },
  "hsl": {
    "h": 284.46,
    "s": 71.282,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46636,
    "c": 0.20827,
    "h": 314.9
  },
  "luminance": 0.08446
}

Semantic roles & 50–950 ramp

primary
#831CA7
secondary
#75C758
accent
#EE3A68
background
#FBF6FC
surface
#F6EBF8
border
#D0C6D1
text
#110712
muted
#807A81

Preview Lab

Preview with #831CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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