#5D408D#5D408D

#5D408D is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.2% C 0.124 H 298.6°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#5D408D
RGBrgb(93, 64, 141)
HSLhsl(263, 38%, 40%)
HSVhsv(263, 55%, 55%)
CMYKcmyk(34%, 54.6%, 0%, 44.7%)
CIE-LABlab(33.81, 30.10, -38.42)
CIE-LCHlch(33.81, 48.80, 308.08°)
OKLaboklab(44.19% 0.0592 -0.1085)
OKLCHoklch(44.19% 0.124 298.6)
XYZxyz(11.1541, 7.9169, 26.1346)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D408D #708D40
analogous
#404A8D #5D408D #83408D
triadic
#5D408D #8D5D40 #408D5D
tetradic
#5D408D #8D404A #708D40 #408D83
square
#5D408D #8D404A #708D40 #408D83
split-complementary
#5D408D #8D8340 #4A8D40
monochromatic
#251A39 #412D63 #5D408D #7A57B3 #9B81C6

Accessibility & contrast

On white

8.13
#5D408D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5D408D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D408D
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D408D#FFFFFF#000000##FFFFFF
##5D408D1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225090
Deuteranopia (green-blind)
#2A4F8B
Tritanopia (blue-blind)
#534F60
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5d408d;
/* rgb */ color: rgb(93, 64, 141);
/* oklch */ color: oklch(44.2% 0.124 298.6);
Tailwind
colors: {
  custom: {
    50: '#8e76af',
    500: '#5d408d',
    950: '#000000',
  },
}
SCSS
$custom: #5d408d;
$custom-light: #8e76af;
$custom-dark: #000000;
JSON
{
  "hex": "#5d408d",
  "rgb": {
    "r": 93,
    "g": 64,
    "b": 141
  },
  "hsl": {
    "h": 262.597,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.44191,
    "c": 0.12364,
    "h": 298.6
  },
  "luminance": 0.07917
}

Semantic roles & 50–950 ramp

primary
#5D408D
secondary
#9BB078
accent
#CE5AA2
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0C0810
muted
#7D7B7F

Preview Lab

Preview with #5D408D

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

Preview Lab → · Contrast checker → · Palette generator →

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