#5D408E#5D408E

#5D408E is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.3% C 0.125 H 298.3°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#5D408E
RGBrgb(93, 64, 142)
HSLhsl(262, 38%, 40%)
HSVhsv(262, 55%, 56%)
CMYKcmyk(34.5%, 54.9%, 0%, 44.3%)
CIE-LABlab(33.87, 30.38, -38.93)
CIE-LCHlch(33.87, 49.38, 307.96°)
OKLaboklab(44.26% 0.0593 -0.11)
OKLCHoklch(44.26% 0.125 298.3)
XYZxyz(11.2289, 7.9468, 26.5282)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D408E #718E40
analogous
#404A8E #5D408E #84408E
triadic
#5D408E #8E5D40 #408E5D
tetradic
#5D408E #8E404A #718E40 #408E84
square
#5D408E #8E404A #718E40 #408E84
split-complementary
#5D408E #8E8440 #4A8E40
monochromatic
#261A3A #412D64 #5D408E #7A58B4 #9B82C7

Accessibility & contrast

On white

8.11
#5D408E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5D408E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D408E
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D408E#FFFFFF#000000##FFFFFF
##5D408E1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215091
Deuteranopia (green-blind)
#2A4F8C
Tritanopia (blue-blind)
#524F60
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5d408e;
/* rgb */ color: rgb(93, 64, 142);
/* oklch */ color: oklch(44.3% 0.125 298.3);
Tailwind
colors: {
  custom: {
    50: '#8e76af',
    500: '#5d408e',
    950: '#000000',
  },
}
SCSS
$custom: #5d408e;
$custom-light: #8e76af;
$custom-dark: #000000;
JSON
{
  "hex": "#5d408e",
  "rgb": {
    "r": 93,
    "g": 64,
    "b": 142
  },
  "hsl": {
    "h": 262.308,
    "s": 37.864,
    "l": 40.392
  },
  "oklch": {
    "l": 0.44258,
    "c": 0.12499,
    "h": 298.3
  },
  "luminance": 0.07947
}

Semantic roles & 50–950 ramp

primary
#5D408E
secondary
#9CB179
accent
#CE5AA3
background
#F8F7FA
surface
#F0EDF5
border
#CBC8CF
text
#0C0810
muted
#7D7B7F

Preview Lab

Preview with #5D408E

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

Preview Lab → · Contrast checker → · Palette generator →

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