#5C31B6#5C31B6

#5C31B6 is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.0% C 0.195 H 291.3°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#5C31B6
RGBrgb(92, 49, 182)
HSLhsl(259, 58%, 45%)
HSVhsv(259, 73%, 71%)
CMYKcmyk(49.5%, 73.1%, 0%, 28.6%)
CIE-LABlab(33.67, 49.69, -63.37)
CIE-LCHlch(33.67, 80.53, 308.10°)
OKLaboklab(45.03% 0.0708 -0.1819)
OKLCHoklch(45.03% 0.195 291.3)
XYZxyz(13.9530, 7.8488, 45.0267)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C31B6 #8BB631
analogous
#3149B6 #5C31B6 #9E31B6
triadic
#5C31B6 #B65C31 #31B65C
tetradic
#5C31B6 #B63149 #8BB631 #31B69E
square
#5C31B6 #B63149 #8BB631 #31B69E
split-complementary
#5C31B6 #B69E31 #49B631
monochromatic
#2B1756 #442486 #5C31B6 #7C53D1 #A184DE

Accessibility & contrast

On white

8.17
#5C31B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5C31B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C31B6
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C31B6#FFFFFF#000000##FFFFFF
##5C31B61.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BA
Deuteranopia (green-blind)
#004CB3
Tritanopia (blue-blind)
#3E5471
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5c31b6;
/* rgb */ color: rgb(92, 49, 182);
/* oklch */ color: oklch(45.0% 0.195 291.3);
Tailwind
colors: {
  custom: {
    50: '#936dcd',
    500: '#5c31b6',
    950: '#000000',
  },
}
SCSS
$custom: #5c31b6;
$custom-light: #936dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#5c31b6",
  "rgb": {
    "r": 92,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 259.398,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45026,
    "c": 0.19519,
    "h": 291.3
  },
  "luminance": 0.07849
}

Semantic roles & 50–950 ramp

primary
#5C31B6
secondary
#AFC77C
accent
#E147AF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5C31B6

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

Preview Lab → · Contrast checker → · Palette generator →

#5C31B6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva