#5D408B#5D408B

#5D408B is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.1% C 0.121 H 299.2°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#5D408B
RGBrgb(93, 64, 139)
HSLhsl(263, 37%, 40%)
HSVhsv(263, 54%, 55%)
CMYKcmyk(33.1%, 54%, 0%, 45.5%)
CIE-LABlab(33.69, 29.55, -37.39)
CIE-LCHlch(33.69, 47.65, 308.32°)
OKLaboklab(44.06% 0.0591 -0.1055)
OKLCHoklch(44.06% 0.121 299.2)
XYZxyz(11.0067, 7.8579, 25.3579)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D408B #6E8B40
analogous
#40488B #5D408B #83408B
triadic
#5D408B #8B5D40 #408B5D
tetradic
#5D408B #8B4048 #6E8B40 #408B83
square
#5D408B #8B4048 #6E8B40 #408B83
split-complementary
#5D408B #8B8340 #488B40
monochromatic
#251937 #412D61 #5D408B #7A57B2 #9B81C5

Accessibility & contrast

On white

8.17
#5D408B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5D408B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D408B
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D408B#FFFFFF#000000##FFFFFF
##5D408B1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244F8E
Deuteranopia (green-blind)
#2C4F89
Tritanopia (blue-blind)
#534F5F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5d408b;
/* rgb */ color: rgb(93, 64, 139);
/* oklch */ color: oklch(44.1% 0.121 299.2);
Tailwind
colors: {
  custom: {
    50: '#8e76ad',
    500: '#5d408b',
    950: '#000000',
  },
}
SCSS
$custom: #5d408b;
$custom-light: #8e76ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5d408b",
  "rgb": {
    "r": 93,
    "g": 64,
    "b": 139
  },
  "hsl": {
    "h": 263.2,
    "s": 36.946,
    "l": 39.804
  },
  "oklch": {
    "l": 0.44059,
    "c": 0.12094,
    "h": 299.2
  },
  "luminance": 0.07858
}

Semantic roles & 50–950 ramp

primary
#5D408B
secondary
#9AAF78
accent
#CD5BA1
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0C0810
muted
#7D7B7F

Preview Lab

Preview with #5D408B

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

Preview Lab → · Contrast checker → · Palette generator →

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