#240542
Dark Purple
HEX
RGB
HSL
About #240542 Dark Purple
#240542 is a dark purple color. In the RGB color model, it is composed of 36 red, 5 green, and 66 blue. In the HSL color space, it has a hue of 270°, saturation of 86%, and lightness of 14%.
This color has a low lightness value, making it a dark color great for text and bold accents. With high saturation, it appears vibrant and eye-catching.
CSS Code
Use #240542 in your CSS, SCSS, or Tailwind projects.
Color Properties
270°
Hue
86%
Saturation
14%
Lightness
Dark Purple
Color Harmonies
Colors that work well with #240542 based on color theory.
Accessibility
WCAG 2.1 contrast ratio of #240542 against white and black backgrounds.
Aa#240542 on White
Contrast Ratio17.87:1
AA ✓AA Large ✓AAA ✓
Aa#240542 on Black
Contrast Ratio1.18:1
AA ✗AA Large ✗AAA ✗
Color Conversion Table
Complete conversion of #240542 across different color formats.
| Format | Value |
|---|---|
| HEX | #240542 |
| RGB | rgb(36, 5, 66) |
| HSL | hsl(270, 86%, 14%) |
| RGB Decimal | 36, 5, 66 |
| RGB Percent | 14.1%, 2.0%, 25.9% |
| CMYK (approx.) | 45%, 92%, 0%, 74% |
Related Palettes
12 palettes using #240542 or similar colors