#40289F
Purple
HEX
RGB
HSL
About #40289F Purple
#40289F is a purple color. In the RGB color model, it is composed of 64 red, 40 green, and 159 blue. In the HSL color space, it has a hue of 252°, saturation of 60%, 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 & Gradients
Use #40289F in your CSS, SCSS, or Tailwind projects. Copy ready-to-use gradients.
Beautiful Gradients
Color Properties
252°
Hue
60%
Saturation
39%
Lightness
Purple
Color Harmonies
Colors that work well with #40289F based on color theory.
Accessibility
WCAG 2.1 contrast ratio of #40289F against white and black backgrounds.
Aa#40289F on White
Contrast Ratio10.38:1
AA ✓AA Large ✓AAA ✓
Aa#40289F on Black
Contrast Ratio2.02:1
AA ✗AA Large ✗AAA ✗
Color Conversion Table
Complete conversion of #40289F across different color formats.
| Format | Value |
|---|---|
| HEX | #40289F |
| RGB | rgb(64, 40, 159) |
| HSL | hsl(252, 60%, 39%) |
| RGB Decimal | 64, 40, 159 |
| RGB Percent | 25.1%, 15.7%, 62.4% |
| CMYK (approx.) | 60%, 75%, 0%, 38% |
Related Palettes
12 palettes using #40289F or similar colors