#5D4E7B#5D4E7B

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

Color values

HEX#5D4E7B
RGBrgb(93, 78, 123)
HSLhsl(260, 22%, 39%)
HSVhsv(260, 37%, 48%)
CMYKcmyk(24.4%, 36.6%, 0%, 51.8%)
CIE-LABlab(36.38, 16.51, -23.27)
CIE-LCHlch(36.38, 28.53, 305.35°)
OKLaboklab(45.8% 0.0355 -0.0645)
OKLCHoklch(45.8% 0.074 298.8)
XYZxyz(10.8129, 9.2059, 19.9423)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D4E7B #6C7B4E
analogous
#4E567B #5D4E7B #744E7B
triadic
#5D4E7B #7B5D4E #4E7B5D
tetradic
#5D4E7B #7B4E56 #6C7B4E #4E7B74
square
#5D4E7B #7B4E56 #6C7B4E #4E7B74
split-complementary
#5D4E7B #7B744E #567B4E
monochromatic
#241F30 #413656 #5D4E7B #7A679F #9B8DB7

Accessibility & contrast

On white

7.39
#5D4E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D4E7B
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D4E7B#FFFFFF#000000##FFFFFF
##5D4E7B1.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43567D
Deuteranopia (green-blind)
#46557A
Tritanopia (blue-blind)
#57555F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5d4e7b;
/* rgb */ color: rgb(93, 78, 123);
/* oklch */ color: oklch(45.8% 0.074 298.8);
Tailwind
colors: {
  custom: {
    50: '#8c7fa1',
    500: '#5d4e7b',
    950: '#000000',
  },
}
SCSS
$custom: #5d4e7b;
$custom-light: #8c7fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d4e7b",
  "rgb": {
    "r": 93,
    "g": 78,
    "b": 123
  },
  "hsl": {
    "h": 260,
    "s": 22.388,
    "l": 39.412
  },
  "oklch": {
    "l": 0.45803,
    "c": 0.07366,
    "h": 298.8
  },
  "luminance": 0.09206
}

Semantic roles & 50–950 ramp

primary
#5D4E7B
secondary
#98A381
accent
#BF69A2
background
#F8F7F9
surface
#F0EEF2
border
#CBC9CC
text
#0C0A0F
muted
#7D7C7E

Preview Lab

Preview with #5D4E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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