#402056
Dark Purple
HEX
RGB
HSL
About #402056 Dark Purple
#402056 is a dark purple color. In the RGB color model, it is composed of 64 red, 32 green, and 86 blue. In the HSL color space, it has a hue of 276°, saturation of 46%, and lightness of 23%.
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 #402056 in your CSS, SCSS, or Tailwind projects.
Color Properties
276°
Hue
46%
Saturation
23%
Lightness
Dark Purple
Color Harmonies
Colors that work well with #402056 based on color theory.
Accessibility
WCAG 2.1 contrast ratio of #402056 against white and black backgrounds.
Aa#402056 on White
Contrast Ratio13.47:1
AA ✓AA Large ✓AAA ✓
Aa#402056 on Black
Contrast Ratio1.56:1
AA ✗AA Large ✗AAA ✗
Color Conversion Table
Complete conversion of #402056 across different color formats.
| Format | Value |
|---|---|
| HEX | #402056 |
| RGB | rgb(64, 32, 86) |
| HSL | hsl(276, 46%, 23%) |
| RGB Decimal | 64, 32, 86 |
| RGB Percent | 25.1%, 12.5%, 33.7% |
| CMYK (approx.) | 26%, 63%, 0%, 66% |
Related Palettes
12 palettes using #402056 or similar colors