#5940BF
Purple
HEX
RGB
HSL
About #5940BF Purple
#5940BF is a purple color. In the RGB color model, it is composed of 89 red, 64 green, and 191 blue. In the HSL color space, it has a hue of 252°, saturation of 50%, and lightness of 50%.
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 #5940BF in your CSS, SCSS, or Tailwind projects.
Color Properties
252°
Hue
50%
Saturation
50%
Lightness
Purple
Color Harmonies
Colors that work well with #5940BF based on color theory.
Accessibility
WCAG 2.1 contrast ratio of #5940BF against white and black backgrounds.
Aa#5940BF on White
Contrast Ratio7.22:1
AA ✓AA Large ✓AAA ✓
Aa#5940BF on Black
Contrast Ratio2.91:1
AA ✗AA Large ✗AAA ✗
Color Conversion Table
Complete conversion of #5940BF across different color formats.
| Format | Value |
|---|---|
| HEX | #5940BF |
| RGB | rgb(89, 64, 191) |
| HSL | hsl(252, 50%, 50%) |
| RGB Decimal | 89, 64, 191 |
| RGB Percent | 34.9%, 25.1%, 74.9% |
| CMYK (approx.) | 53%, 66%, 0%, 25% |
Related Palettes
12 palettes using #5940BF or similar colors