#5D4591#5D4591

#5D4591 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 45.3% C 0.121 H 295.8°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#5D4591
RGBrgb(93, 69, 145)
HSLhsl(259, 36%, 42%)
HSVhsv(259, 52%, 57%)
CMYKcmyk(35.9%, 52.4%, 0%, 43.1%)
CIE-LABlab(35.26, 28.16, -38.55)
CIE-LCHlch(35.26, 47.74, 306.14°)
OKLaboklab(45.35% 0.0526 -0.1089)
OKLCHoklch(45.35% 0.121 295.8)
XYZxyz(11.7519, 8.6275, 27.8287)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D4591 #799145
analogous
#455391 #5D4591 #834591
triadic
#5D4591 #915D45 #45915D
tetradic
#5D4591 #914553 #799145 #459183
square
#5D4591 #914553 #799145 #459183
split-complementary
#5D4591 #918345 #539145
monochromatic
#281E3E #423168 #5D4591 #7A60B3 #9D89C7

Accessibility & contrast

On white

7.70
#5D4591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5D4591 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D4591
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D4591#FFFFFF#000000##FFFFFF
##5D45911.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285394
Deuteranopia (green-blind)
#2E528F
Tritanopia (blue-blind)
#515464
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5d4591;
/* rgb */ color: rgb(93, 69, 145);
/* oklch */ color: oklch(45.3% 0.121 295.8);
Tailwind
colors: {
  custom: {
    50: '#8e79b2',
    500: '#5d4591',
    950: '#000000',
  },
}
SCSS
$custom: #5d4591;
$custom-light: #8e79b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d4591",
  "rgb": {
    "r": 93,
    "g": 69,
    "b": 145
  },
  "hsl": {
    "h": 258.947,
    "s": 35.514,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45346,
    "c": 0.12097,
    "h": 295.8
  },
  "luminance": 0.08628
}

Semantic roles & 50–950 ramp

primary
#5D4591
secondary
#A2B280
accent
#CC5CA8
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0911
muted
#7D7B80

Preview Lab

Preview with #5D4591

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

Preview Lab → · Contrast checker → · Palette generator →

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