#5D40A5
Purple
HEX
RGB
HSL
About #5D40A5 Purple
#5D40A5 is a purple color. In the RGB color model, it is composed of 93 red, 64 green, and 165 blue. In the HSL color space, it has a hue of 257°, saturation of 44%, and lightness of 45%.
This color has a medium lightness value, making it a balanced tone ideal for both text and UI elements. With moderate saturation, it appears balanced and versatile.
CSS Code
Use #5D40A5 in your CSS, SCSS, or Tailwind projects.
Color Properties
257°
Hue
44%
Saturation
45%
Lightness
Purple
Color Harmonies
Colors that work well with #5D40A5 based on color theory.
Accessibility
WCAG 2.1 contrast ratio of #5D40A5 against white and black backgrounds.
Aa#5D40A5 on White
Contrast Ratio7.66:1
AA ✓AA Large ✓AAA ✓
Aa#5D40A5 on Black
Contrast Ratio2.74:1
AA ✗AA Large ✗AAA ✗
Color Conversion Table
Complete conversion of #5D40A5 across different color formats.
| Format | Value |
|---|---|
| HEX | #5D40A5 |
| RGB | rgb(93, 64, 165) |
| HSL | hsl(257, 44%, 45%) |
| RGB Decimal | 93, 64, 165 |
| RGB Percent | 36.5%, 25.1%, 64.7% |
| CMYK (approx.) | 44%, 61%, 0%, 35% |
Related Palettes
12 palettes using #5D40A5 or similar colors