#5C3D8A#5C3D8A

#5C3D8A is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.4% C 0.124 H 299.8°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#5C3D8A
RGBrgb(92, 61, 138)
HSLhsl(264, 39%, 39%)
HSVhsv(264, 56%, 54%)
CMYKcmyk(33.3%, 55.8%, 0%, 45.9%)
CIE-LABlab(32.81, 30.82, -38.18)
CIE-LCHlch(32.81, 49.07, 308.91°)
OKLaboklab(43.36% 0.0618 -0.1079)
OKLCHoklch(43.36% 0.124 299.8)
XYZxyz(10.6687, 7.4477, 24.9153)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C3D8A #6B8A3D
analogous
#3D458A #5C3D8A #833D8A
triadic
#5C3D8A #8A5C3D #3D8A5C
tetradic
#5C3D8A #8A3D45 #6B8A3D #3D8A83
square
#5C3D8A #8A3D45 #6B8A3D #3D8A83
split-complementary
#5C3D8A #8A833D #458A3D
monochromatic
#231735 #402A60 #5C3D8A #7952B2 #9A7CC5

Accessibility & contrast

On white

8.44
#5C3D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5C3D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C3D8A
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C3D8A#FFFFFF#000000##FFFFFF
##5C3D8A1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4D8D
Deuteranopia (green-blind)
#284D88
Tritanopia (blue-blind)
#524C5D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5c3d8a;
/* rgb */ color: rgb(92, 61, 138);
/* oklch */ color: oklch(43.4% 0.124 299.8);
Tailwind
colors: {
  custom: {
    50: '#8d73ad',
    500: '#5c3d8a',
    950: '#000000',
  },
}
SCSS
$custom: #5c3d8a;
$custom-light: #8d73ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5c3d8a",
  "rgb": {
    "r": 92,
    "g": 61,
    "b": 138
  },
  "hsl": {
    "h": 264.156,
    "s": 38.693,
    "l": 39.02
  },
  "oklch": {
    "l": 0.43362,
    "c": 0.12435,
    "h": 299.8
  },
  "luminance": 0.07448
}

Semantic roles & 50–950 ramp

primary
#5C3D8A
secondary
#97AF74
accent
#CF599F
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0C0810
muted
#7D7B7F

Preview Lab

Preview with #5C3D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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