#5B31C4
Purple
HEX
RGB
HSL
About #5B31C4 Purple
#5B31C4 is a purple color. In the RGB color model, it is composed of 91 red, 49 green, and 196 blue. In the HSL color space, it has a hue of 257°, saturation of 60%, and lightness of 48%.
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 #5B31C4 in your CSS, SCSS, or Tailwind projects.
Color Properties
257°
Hue
60%
Saturation
48%
Lightness
Purple
Color Harmonies
Colors that work well with #5B31C4 based on color theory.
Accessibility
WCAG 2.1 contrast ratio of #5B31C4 against white and black backgrounds.
Aa#5B31C4 on White
Contrast Ratio7.83:1
AA ✓AA Large ✓AAA ✓
Aa#5B31C4 on Black
Contrast Ratio2.68:1
AA ✗AA Large ✗AAA ✗
Color Conversion Table
Complete conversion of #5B31C4 across different color formats.
| Format | Value |
|---|---|
| HEX | #5B31C4 |
| RGB | rgb(91, 49, 196) |
| HSL | hsl(257, 60%, 48%) |
| RGB Decimal | 91, 49, 196 |
| RGB Percent | 35.7%, 19.2%, 76.9% |
| CMYK (approx.) | 54%, 75%, 0%, 23% |
Related Palettes
12 palettes using #5B31C4 or similar colors