#5C3391#5C3391

#5C3391 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.3% C 0.149 H 300.1°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#5C3391
RGBrgb(92, 51, 145)
HSLhsl(266, 48%, 38%)
HSVhsv(266, 65%, 57%)
CMYKcmyk(36.6%, 64.8%, 0%, 43.1%)
CIE-LABlab(31.08, 38.53, -45.26)
CIE-LCHlch(31.08, 59.44, 310.41°)
OKLaboklab(42.26% 0.0747 -0.1286)
OKLCHoklch(42.26% 0.149 300.1)
XYZxyz(10.7070, 6.6872, 27.5092)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C3391 #689133
analogous
#333991 #5C3391 #8B3391
triadic
#5C3391 #915C33 #33915C
tetradic
#5C3391 #913339 #689133 #33918B
square
#5C3391 #913339 #689133 #33918B
split-complementary
#5C3391 #918B33 #399133
monochromatic
#231336 #3F2364 #5C3391 #7944BD #9971CD

Accessibility & contrast

On white

8.98
#5C3391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5C3391 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C3391
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C3391#FFFFFF#000000##FFFFFF
##5C33911.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004994
Deuteranopia (green-blind)
#0B488F
Tritanopia (blue-blind)
#50485D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5c3391;
/* rgb */ color: rgb(92, 51, 145);
/* oklch */ color: oklch(42.3% 0.149 300.1);
Tailwind
colors: {
  custom: {
    50: '#8e6db2',
    500: '#5c3391',
    950: '#000000',
  },
}
SCSS
$custom: #5c3391;
$custom-light: #8e6db2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c3391",
  "rgb": {
    "r": 92,
    "g": 51,
    "b": 145
  },
  "hsl": {
    "h": 266.17,
    "s": 47.959,
    "l": 38.431
  },
  "oklch": {
    "l": 0.42255,
    "c": 0.14877,
    "h": 300.1
  },
  "luminance": 0.06687
}

Semantic roles & 50–950 ramp

primary
#5C3391
secondary
#95B56B
accent
#D8509D
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5C3391

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

Preview Lab → · Contrast checker → · Palette generator →

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