#5C31AE#5C31AE

#5C31AE is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.3% C 0.186 H 293.0°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#5C31AE
RGBrgb(92, 49, 174)
HSLhsl(261, 56%, 44%)
HSVhsv(261, 72%, 68%)
CMYKcmyk(47.1%, 71.8%, 0%, 31.8%)
CIE-LABlab(32.98, 47.49, -59.74)
CIE-LCHlch(32.98, 76.31, 308.48°)
OKLaboklab(44.33% 0.0726 -0.1712)
OKLCHoklch(44.33% 0.186 293)
XYZxyz(13.1498, 7.5275, 40.7963)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C31AE #83AE31
analogous
#3144AE #5C31AE #9A31AE
triadic
#5C31AE #AE5C31 #31AE5C
tetradic
#5C31AE #AE3144 #83AE31 #31AE9A
square
#5C31AE #AE3144 #83AE31 #31AE9A
split-complementary
#5C31AE #AE9A31 #44AE31
monochromatic
#2A164E #43247E #5C31AE #7A4FCD #9E7FDB

Accessibility & contrast

On white

8.38
#5C31AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5C31AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C31AE
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C31AE#FFFFFF#000000##FFFFFF
##5C31AE1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB2
Deuteranopia (green-blind)
#004BAC
Tritanopia (blue-blind)
#43516C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5c31ae;
/* rgb */ color: rgb(92, 49, 174);
/* oklch */ color: oklch(44.3% 0.186 293.0);
Tailwind
colors: {
  custom: {
    50: '#926dc7',
    500: '#5c31ae',
    950: '#000000',
  },
}
SCSS
$custom: #5c31ae;
$custom-light: #926dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#5c31ae",
  "rgb": {
    "r": 92,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 260.64,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44328,
    "c": 0.18596,
    "h": 293
  },
  "luminance": 0.07528
}

Semantic roles & 50–950 ramp

primary
#5C31AE
secondary
#A9C477
accent
#DF48AB
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5C31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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