#831FC2#831FC2

#831FC2 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 49.0% C 0.229 H 307.0°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#831FC2
RGBrgb(131, 31, 194)
HSLhsl(277, 72%, 44%)
HSVhsv(277, 84%, 76%)
CMYKcmyk(32.5%, 84%, 0%, 23.9%)
CIE-LABlab(37.30, 65.59, -64.30)
CIE-LCHlch(37.30, 91.85, 315.57°)
OKLaboklab(48.97% 0.138 -0.1831)
OKLCHoklch(48.97% 0.229 307)
XYZxyz(19.5855, 9.7005, 51.8691)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831FC2 #5EC21F
analogous
#321FC2 #831FC2 #C21FB0
triadic
#831FC2 #C2831F #1FC283
tetradic
#831FC2 #C2321F #5EC21F #1FB0C2
square
#831FC2 #C2321F #5EC21F #1FB0C2
split-complementary
#831FC2 #B0C21F #1FC232
monochromatic
#3C0E58 #5F178D #831FC2 #A23EE0 #BB73E9

Accessibility & contrast

On white

7.14
#831FC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#831FC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831FC2
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831FC2#FFFFFF#000000##FFFFFF
##831FC21.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C6
Deuteranopia (green-blind)
#0058BF
Tritanopia (blue-blind)
#784D74
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #831fc2;
/* rgb */ color: rgb(131, 31, 194);
/* oklch */ color: oklch(49.0% 0.229 307.0);
Tailwind
colors: {
  custom: {
    50: '#ad6ad6',
    500: '#831fc2',
    950: '#000000',
  },
}
SCSS
$custom: #831fc2;
$custom-light: #ad6ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#831fc2",
  "rgb": {
    "r": 131,
    "g": 31,
    "b": 194
  },
  "hsl": {
    "h": 276.81,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48967,
    "c": 0.2293,
    "h": 307
  },
  "luminance": 0.097
}

Semantic roles & 50–950 ramp

primary
#831FC2
secondary
#93CF6D
accent
#EF397F
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110714
muted
#807A83

Preview Lab

Preview with #831FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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