#5C31A4#5C31A4

#5C31A4 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.5% C 0.174 H 295.3°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#5C31A4
RGBrgb(92, 49, 164)
HSLhsl(262, 54%, 42%)
HSVhsv(262, 70%, 64%)
CMYKcmyk(43.9%, 70.1%, 0%, 35.7%)
CIE-LABlab(32.15, 44.75, -55.09)
CIE-LCHlch(32.15, 70.97, 309.09°)
OKLaboklab(43.48% 0.0745 -0.1575)
OKLCHoklch(43.48% 0.174 295.3)
XYZxyz(12.2110, 7.1520, 35.8519)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C31A4 #79A431
analogous
#313FA4 #5C31A4 #9631A4
triadic
#5C31A4 #A45C31 #31A45C
tetradic
#5C31A4 #A4313F #79A431 #31A496
square
#5C31A4 #A4313F #79A431 #31A496
split-complementary
#5C31A4 #A49631 #3FA431
monochromatic
#271546 #422375 #5C31A4 #7949C9 #9C79D7

Accessibility & contrast

On white

8.64
#5C31A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5C31A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C31A4
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C31A4#FFFFFF#000000##FFFFFF
##5C31A41.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA7
Deuteranopia (green-blind)
#004AA2
Tritanopia (blue-blind)
#484D67
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5c31a4;
/* rgb */ color: rgb(92, 49, 164);
/* oklch */ color: oklch(43.5% 0.174 295.3);
Tailwind
colors: {
  custom: {
    50: '#906cc0',
    500: '#5c31a4',
    950: '#000000',
  },
}
SCSS
$custom: #5c31a4;
$custom-light: #906cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c31a4",
  "rgb": {
    "r": 92,
    "g": 49,
    "b": 164
  },
  "hsl": {
    "h": 262.435,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43481,
    "c": 0.17427,
    "h": 295.3
  },
  "luminance": 0.07152
}

Semantic roles & 50–950 ramp

primary
#5C31A4
secondary
#A2BF72
accent
#DD4AA6
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C31A4

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

Preview Lab → · Contrast checker → · Palette generator →

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