#5D4C8D#5D4C8D

#5D4C8D is a mid, moderate violet. Relative luminance 0.094; OKLCH L 46.4% C 0.104 H 294.0°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#5D4C8D
RGBrgb(93, 76, 141)
HSLhsl(256, 30%, 43%)
HSVhsv(256, 46%, 55%)
CMYKcmyk(34%, 46.1%, 0%, 44.7%)
CIE-LABlab(36.78, 22.68, -33.69)
CIE-LCHlch(36.78, 40.61, 303.94°)
OKLaboklab(46.41% 0.0422 -0.0947)
OKLCHoklch(46.41% 0.104 294)
XYZxyz(11.9051, 9.4189, 26.3849)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D4C8D #7C8D4C
analogous
#4C5C8D #5D4C8D #7D4C8D
triadic
#5D4C8D #8D5D4C #4C8D5D
tetradic
#5D4C8D #8D4C5C #7C8D4C #4C8D7D
square
#5D4C8D #8D4C5C #7C8D4C #4C8D7D
split-complementary
#5D4C8D #8D7D4C #5C8D4C
monochromatic
#29213D #433765 #5D4C8D #7B68AE #9E90C3

Accessibility & contrast

On white

7.28
#5D4C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5D4C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D4C8D
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D4C8D#FFFFFF#000000##FFFFFF
##5D4C8D1.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37578F
Deuteranopia (green-blind)
#3A558B
Tritanopia (blue-blind)
#525865
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5d4c8d;
/* rgb */ color: rgb(93, 76, 141);
/* oklch */ color: oklch(46.4% 0.104 294.0);
Tailwind
colors: {
  custom: {
    50: '#8d7eaf',
    500: '#5d4c8d',
    950: '#000000',
  },
}
SCSS
$custom: #5d4c8d;
$custom-light: #8d7eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d4c8d",
  "rgb": {
    "r": 93,
    "g": 76,
    "b": 141
  },
  "hsl": {
    "h": 255.692,
    "s": 29.954,
    "l": 42.549
  },
  "oklch": {
    "l": 0.4641,
    "c": 0.10373,
    "h": 294
  },
  "luminance": 0.09419
}

Semantic roles & 50–950 ramp

primary
#5D4C8D
secondary
#A4AF85
accent
#C662AC
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0A10
muted
#7D7C7F

Preview Lab

Preview with #5D4C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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