#542A9D
Purple
HEX
RGB
HSL
About #542A9D Purple
#542A9D is a purple color. In the RGB color model, it is composed of 84 red, 42 green, and 157 blue. In the HSL color space, it has a hue of 262°, saturation of 58%, and lightness of 39%.
This color has a low lightness value, making it a dark color great for text and bold accents. With moderate saturation, it appears balanced and versatile.
CSS Code
Use #542A9D in your CSS, SCSS, or Tailwind projects.
Color Properties
262°
Hue
58%
Saturation
39%
Lightness
Purple
Color Harmonies
Colors that work well with #542A9D based on color theory.
Accessibility
WCAG 2.1 contrast ratio of #542A9D against white and black backgrounds.
Aa#542A9D on White
Contrast Ratio9.57:1
AA ✓AA Large ✓AAA ✓
Aa#542A9D on Black
Contrast Ratio2.2:1
AA ✗AA Large ✗AAA ✗
Color Conversion Table
Complete conversion of #542A9D across different color formats.
| Format | Value |
|---|---|
| HEX | #542A9D |
| RGB | rgb(84, 42, 157) |
| HSL | hsl(262, 58%, 39%) |
| RGB Decimal | 84, 42, 157 |
| RGB Percent | 32.9%, 16.5%, 61.6% |
| CMYK (approx.) | 46%, 73%, 0%, 38% |
Related Palettes
12 palettes using #542A9D or similar colors