#5D4E7A#5D4E7A

#5D4E7A is a mid, moderate violet. Relative luminance 0.092; OKLCH L 45.8% C 0.072 H 299.2°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#5D4E7A
RGBrgb(93, 78, 122)
HSLhsl(260, 22%, 39%)
HSVhsv(260, 36%, 48%)
CMYKcmyk(23.8%, 36.1%, 0%, 52.2%)
CIE-LABlab(36.33, 16.24, -22.73)
CIE-LCHlch(36.33, 27.94, 305.55°)
OKLaboklab(45.75% 0.0352 -0.063)
OKLCHoklch(45.75% 0.072 299.2)
XYZxyz(10.7507, 9.1810, 19.6143)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D4E7A #6B7A4E
analogous
#4E557A #5D4E7A #734E7A
triadic
#5D4E7A #7A5D4E #4E7A5D
tetradic
#5D4E7A #7A4E55 #6B7A4E #4E7A73
square
#5D4E7A #7A4E55 #6B7A4E #4E7A73
split-complementary
#5D4E7A #7A734E #557A4E
monochromatic
#241E2F #413655 #5D4E7A #7A679E #9B8DB6

Accessibility & contrast

On white

7.40
#5D4E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5D4E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D4E7A
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D4E7A#FFFFFF#000000##FFFFFF
##5D4E7A1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#44557C
Deuteranopia (green-blind)
#465579
Tritanopia (blue-blind)
#58555E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5d4e7a;
/* rgb */ color: rgb(93, 78, 122);
/* oklch */ color: oklch(45.8% 0.072 299.2);
Tailwind
colors: {
  custom: {
    50: '#8c7fa0',
    500: '#5d4e7a',
    950: '#000000',
  },
}
SCSS
$custom: #5d4e7a;
$custom-light: #8c7fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d4e7a",
  "rgb": {
    "r": 93,
    "g": 78,
    "b": 122
  },
  "hsl": {
    "h": 260.455,
    "s": 22,
    "l": 39.216
  },
  "oklch": {
    "l": 0.45751,
    "c": 0.07216,
    "h": 299.2
  },
  "luminance": 0.09181
}

Semantic roles & 50–950 ramp

primary
#5D4E7A
secondary
#97A381
accent
#BF69A1
background
#F8F7F9
surface
#F0EEF2
border
#CBC9CC
text
#0C0A0E
muted
#7D7C7E

Preview Lab

Preview with #5D4E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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