#5D3C8A#5D3C8A

#5D3C8A is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.3% C 0.126 H 300.8°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#5D3C8A
RGBrgb(93, 60, 138)
HSLhsl(265, 39%, 39%)
HSVhsv(265, 57%, 54%)
CMYKcmyk(32.6%, 56.5%, 0%, 45.9%)
CIE-LABlab(32.69, 31.69, -38.37)
CIE-LCHlch(32.69, 49.76, 309.56°)
OKLaboklab(43.3% 0.0646 -0.1084)
OKLCHoklch(43.3% 0.126 300.8)
XYZxyz(10.7164, 7.3938, 24.9024)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3C8A #698A3C
analogous
#3C428A #5D3C8A #843C8A
triadic
#5D3C8A #8A5D3C #3C8A5D
tetradic
#5D3C8A #8A3C42 #698A3C #3C8A84
square
#5D3C8A #8A3C42 #698A3C #3C8A84
split-complementary
#5D3C8A #8A843C #428A3C
monochromatic
#241735 #40295F #5D3C8A #7A50B3 #9A7BC6

Accessibility & contrast

On white

8.47
#5D3C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5D3C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3C8A
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3C8A#FFFFFF#000000##FFFFFF
##5D3C8A1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4D8D
Deuteranopia (green-blind)
#284C88
Tritanopia (blue-blind)
#544B5D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5d3c8a;
/* rgb */ color: rgb(93, 60, 138);
/* oklch */ color: oklch(43.3% 0.126 300.8);
Tailwind
colors: {
  custom: {
    50: '#8e73ad',
    500: '#5d3c8a',
    950: '#000000',
  },
}
SCSS
$custom: #5d3c8a;
$custom-light: #8e73ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3c8a",
  "rgb": {
    "r": 93,
    "g": 60,
    "b": 138
  },
  "hsl": {
    "h": 265.385,
    "s": 39.394,
    "l": 38.824
  },
  "oklch": {
    "l": 0.43301,
    "c": 0.12617,
    "h": 300.8
  },
  "luminance": 0.07394
}

Semantic roles & 50–950 ramp

primary
#5D3C8A
secondary
#96AF73
accent
#CF599D
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0C0810
muted
#7D7B7F

Preview Lab

Preview with #5D3C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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