#51428B - Moonlight Sonata
Hex color #51428B is called Moonlight Sonata. It consists of 32% red, 26% green, and 55% blue in RGB color space. In CMYK it is 42% cyan, 53% magenta, 0% yellow, and 45% black. In HSL it is 252° hue, 36% saturation, and 40% lightness (dark) . On this page you can get both color properties and CSS values for such color schemas: HEX, HEXA, RGB, RGBA, HSL, and CMYK; color name, CSS color name, tailwind name for color; shades and tints; monochromatic colors; negative color; and other info.
| Property | Value | CSS |
|---|---|---|
| Name | Moonlight Sonata | — |
| HEX | #51428B | #51428B |
| HEXA | #51428BFF | #51428BFF |
| RGB | 81, 66, 139 | rgb(81, 66, 139) |
| RGBA | 81, 66, 139, 1 | rgba(81, 66, 139, 1) |
| HSL | 252%, 36%, 40% | hsl(252%, 36%, 40%) |
| CMYK | 42%, 53%, 0%, 45% | cmyk(42%, 53%, 0%, 45%) |
| CSS Name | — | — |
| Tailwind Name | — | — |
| Lightness | 40% (dark) | — |
Negative color
The color opposite to #51428B is #AEBD74.
Preview on black and white
As #51428B has 40% lightness, this color is dark, so it has more contrast with white.
#51428B On White Background
#51428B
#51428B
Text Color
This is how text looks with this color.
#51428B On Black Background
#51428B
#51428B
Text Color
This is how text looks with this color.
Transform color
81, 66, 139rgb(81, 66, 139)