#5D4D7B#5D4D7B

#5D4D7B is a mid, moderate violet. Relative luminance 0.091; OKLCH L 45.6% C 0.075 H 299.4°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#5D4D7B
RGBrgb(93, 77, 123)
HSLhsl(261, 23%, 39%)
HSVhsv(261, 37%, 48%)
CMYKcmyk(24.4%, 37.4%, 0%, 51.8%)
CIE-LABlab(36.11, 17.14, -23.69)
CIE-LCHlch(36.11, 29.24, 305.88°)
OKLaboklab(45.6% 0.0371 -0.0657)
OKLCHoklch(45.6% 0.075 299.4)
XYZxyz(10.7424, 9.0649, 19.9188)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D4D7B #6B7B4D
analogous
#4D547B #5D4D7B #744D7B
triadic
#5D4D7B #7B5D4D #4D7B5D
tetradic
#5D4D7B #7B4D54 #6B7B4D #4D7B74
square
#5D4D7B #7B4D54 #6B7B4D #4D7B74
split-complementary
#5D4D7B #7B744D #547B4D
monochromatic
#241E30 #413555 #5D4D7B #7A669F #9B8CB7

Accessibility & contrast

On white

7.47
#5D4D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5D4D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D4D7B
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D4D7B#FFFFFF#000000##FFFFFF
##5D4D7B1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#42557D
Deuteranopia (green-blind)
#45557A
Tritanopia (blue-blind)
#57545E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5d4d7b;
/* rgb */ color: rgb(93, 77, 123);
/* oklch */ color: oklch(45.6% 0.075 299.4);
Tailwind
colors: {
  custom: {
    50: '#8c7fa1',
    500: '#5d4d7b',
    950: '#000000',
  },
}
SCSS
$custom: #5d4d7b;
$custom-light: #8c7fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d4d7b",
  "rgb": {
    "r": 93,
    "g": 77,
    "b": 123
  },
  "hsl": {
    "h": 260.87,
    "s": 23,
    "l": 39.216
  },
  "oklch": {
    "l": 0.45598,
    "c": 0.07547,
    "h": 299.4
  },
  "luminance": 0.09065
}

Semantic roles & 50–950 ramp

primary
#5D4D7B
secondary
#97A380
accent
#BF68A1
background
#F8F7F9
surface
#F0EEF2
border
#CBC9CC
text
#0C0A0F
muted
#7D7C7E

Preview Lab

Preview with #5D4D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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