#831DA7#831DA7

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

Color values

HEX#831DA7
RGBrgb(131, 29, 167)
HSLhsl(284, 70%, 38%)
HSVhsv(284, 83%, 65%)
CMYKcmyk(21.6%, 82.6%, 0%, 34.5%)
CIE-LABlab(34.99, 60.66, -52.03)
CIE-LCHlch(34.99, 79.92, 319.38°)
OKLaboklab(46.7% 0.1463 -0.1471)
OKLCHoklch(46.7% 0.207 314.9)
XYZxyz(16.7733, 8.4947, 37.3078)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831DA7 #41A71D
analogous
#3E1DA7 #831DA7 #A71D86
triadic
#831DA7 #A7831D #1DA783
tetradic
#831DA7 #A73E1D #41A71D #1D86A7
square
#831DA7 #A73E1D #41A71D #1D86A7
split-complementary
#831DA7 #86A71D #1DA73E
monochromatic
#310B3F #5A1473 #831DA7 #AB28DA #BF5CE3

Accessibility & contrast

On white

7.78
#831DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #831DA7
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831DA7#FFFFFF#000000##FFFFFF
##831DA71.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #831da7;
/* rgb */ color: rgb(131, 29, 167);
/* oklch */ color: oklch(46.7% 0.207 314.9);
Tailwind
colors: {
  custom: {
    50: '#ac68c2',
    500: '#831da7',
    950: '#000000',
  },
}
SCSS
$custom: #831da7;
$custom-light: #ac68c2;
$custom-dark: #000000;
JSON
{
  "hex": "#831da7",
  "rgb": {
    "r": 131,
    "g": 29,
    "b": 167
  },
  "hsl": {
    "h": 284.348,
    "s": 70.408,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46703,
    "c": 0.20745,
    "h": 314.9
  },
  "luminance": 0.08494
}

Semantic roles & 50–950 ramp

primary
#831DA7
secondary
#76C759
accent
#ED3B69
background
#FBF6FC
surface
#F6EBF8
border
#D0C6D1
text
#110712
muted
#807A81

Preview Lab

Preview with #831DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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