#400F8A
Purple
HEX
RGB
HSL
About #400F8A Purple
#400F8A is a purple color. In the RGB color model, it is composed of 64 red, 15 green, and 138 blue. In the HSL color space, it has a hue of 264°, saturation of 80%, and lightness of 30%.
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 #400F8A in your CSS, SCSS, or Tailwind projects.
Color Properties
264°
Hue
80%
Saturation
30%
Lightness
Purple
Color Harmonies
Colors that work well with #400F8A based on color theory.
Accessibility
WCAG 2.1 contrast ratio of #400F8A against white and black backgrounds.
Aa#400F8A on White
Contrast Ratio12.7:1
AA ✓AA Large ✓AAA ✓
Aa#400F8A on Black
Contrast Ratio1.65:1
AA ✗AA Large ✗AAA ✗
Color Conversion Table
Complete conversion of #400F8A across different color formats.
| Format | Value |
|---|---|
| HEX | #400F8A |
| RGB | rgb(64, 15, 138) |
| HSL | hsl(264, 80%, 30%) |
| RGB Decimal | 64, 15, 138 |
| RGB Percent | 25.1%, 5.9%, 54.1% |
| CMYK (approx.) | 54%, 89%, 0%, 46% |
Related Palettes
12 palettes using #400F8A or similar colors