#5C31AA#5C31AA

#5C31AA is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.0% C 0.181 H 293.9°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#5C31AA
RGBrgb(92, 49, 170)
HSLhsl(261, 55%, 43%)
HSVhsv(261, 71%, 67%)
CMYKcmyk(45.9%, 71.2%, 0%, 33.3%)
CIE-LABlab(32.64, 46.39, -57.89)
CIE-LCHlch(32.64, 74.19, 308.71°)
OKLaboklab(43.99% 0.0734 -0.1658)
OKLCHoklch(43.99% 0.181 293.9)
XYZxyz(12.7657, 7.3738, 38.7731)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C31AA #7FAA31
analogous
#3143AA #5C31AA #9831AA
triadic
#5C31AA #AA5C31 #31AA5C
tetradic
#5C31AA #AA3143 #7FAA31 #31AA98
square
#5C31AA #AA3143 #7FAA31 #31AA98
split-complementary
#5C31AA #AA9831 #43AA31
monochromatic
#29164B #42237A #5C31AA #7A4DCC #9D7CD9

Accessibility & contrast

On white

8.49
#5C31AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5C31AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C31AA
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C31AA#FFFFFF#000000##FFFFFF
##5C31AA1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c31aa;
/* rgb */ color: rgb(92, 49, 170);
/* oklch */ color: oklch(44.0% 0.181 293.9);
Tailwind
colors: {
  custom: {
    50: '#916dc4',
    500: '#5c31aa',
    950: '#000000',
  },
}
SCSS
$custom: #5c31aa;
$custom-light: #916dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5c31aa",
  "rgb": {
    "r": 92,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 261.322,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43985,
    "c": 0.1813,
    "h": 293.9
  },
  "luminance": 0.07374
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5C31AA

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

Preview Lab → · Contrast checker → · Palette generator →

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