#5C31AB#5C31AB

#5C31AB is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.1% C 0.182 H 293.6°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#5C31AB
RGBrgb(92, 49, 171)
HSLhsl(261, 55%, 43%)
HSVhsv(261, 71%, 67%)
CMYKcmyk(46.2%, 71.3%, 0%, 32.9%)
CIE-LABlab(32.73, 46.66, -58.36)
CIE-LCHlch(32.73, 74.72, 308.65°)
OKLaboklab(44.07% 0.0732 -0.1671)
OKLCHoklch(44.07% 0.182 293.6)
XYZxyz(12.8606, 7.4118, 39.2732)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C31AB #80AB31
analogous
#3143AB #5C31AB #9931AB
triadic
#5C31AB #AB5C31 #31AB5C
tetradic
#5C31AB #AB3143 #80AB31 #31AB99
square
#5C31AB #AB3143 #80AB31 #31AB99
split-complementary
#5C31AB #AB9931 #43AB31
monochromatic
#29164C #42237B #5C31AB #7A4DCC #9D7DDA

Accessibility & contrast

On white

8.46
#5C31AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5C31AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C31AB
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C31AB#FFFFFF#000000##FFFFFF
##5C31AB1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#004BA9
Tritanopia (blue-blind)
#45506A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5c31ab;
/* rgb */ color: rgb(92, 49, 171);
/* oklch */ color: oklch(44.1% 0.182 293.6);
Tailwind
colors: {
  custom: {
    50: '#916dc5',
    500: '#5c31ab',
    950: '#000000',
  },
}
SCSS
$custom: #5c31ab;
$custom-light: #916dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c31ab",
  "rgb": {
    "r": 92,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 261.148,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.4407,
    "c": 0.18247,
    "h": 293.6
  },
  "luminance": 0.07412
}

Semantic roles & 50–950 ramp

primary
#5C31AB
secondary
#A7C275
accent
#DF49AA
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5C31AB

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

Preview Lab → · Contrast checker → · Palette generator →

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