#831FA7#831FA7

#831FA7 is a mid, highly saturated purple. Relative luminance 0.086; OKLCH L 46.8% C 0.206 H 314.7°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#831FA7
RGBrgb(131, 31, 167)
HSLhsl(284, 69%, 39%)
HSVhsv(284, 81%, 65%)
CMYKcmyk(21.6%, 81.4%, 0%, 34.5%)
CIE-LABlab(35.19, 60.07, -51.71)
CIE-LCHlch(35.19, 79.26, 319.28°)
OKLaboklab(46.85% 0.1449 -0.1461)
OKLCHoklch(46.85% 0.206 314.7)
XYZxyz(16.8239, 8.5959, 37.3247)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831FA7 #43A71F
analogous
#3F1FA7 #831FA7 #A71F87
triadic
#831FA7 #A7831F #1FA783
tetradic
#831FA7 #A73F1F #43A71F #1F87A7
square
#831FA7 #A73F1F #43A71F #1F87A7
split-complementary
#831FA7 #87A71F #1FA73F
monochromatic
#320C40 #5B1573 #831FA7 #AA2BD8 #BF5FE1

Accessibility & contrast

On white

7.72
#831FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#831FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831FA7
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831FA7#FFFFFF#000000##FFFFFF
##831FA71.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAB
Deuteranopia (green-blind)
#1455A4
Tritanopia (blue-blind)
#804064
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #831fa7;
/* rgb */ color: rgb(131, 31, 167);
/* oklch */ color: oklch(46.8% 0.206 314.7);
Tailwind
colors: {
  custom: {
    50: '#ac68c2',
    500: '#831fa7',
    950: '#000000',
  },
}
SCSS
$custom: #831fa7;
$custom-light: #ac68c2;
$custom-dark: #000000;
JSON
{
  "hex": "#831fa7",
  "rgb": {
    "r": 131,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 284.118,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46845,
    "c": 0.20576,
    "h": 314.7
  },
  "luminance": 0.08595
}

Semantic roles & 50–950 ramp

primary
#831FA7
secondary
#78C65C
accent
#EC3C6B
background
#FBF6FC
surface
#F6EBF8
border
#D0C6D1
text
#110712
muted
#807A81

Preview Lab

Preview with #831FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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