#504B8A - Moonlight Sonata
Hex color #504B8A is called Moonlight Sonata. It consists of 31% red, 29% green, and 54% blue in RGB color space. In CMYK it is 42% cyan, 46% magenta, 0% yellow, and 46% black. In HSL it is 245° hue, 30% saturation, and 42% 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 | #504B8A | #504B8A |
| HEXA | #504B8AFF | #504B8AFF |
| RGB | 80, 75, 138 | rgb(80, 75, 138) |
| RGBA | 80, 75, 138, 1 | rgba(80, 75, 138, 1) |
| HSL | 245%, 30%, 42% | hsl(245%, 30%, 42%) |
| CMYK | 42%, 46%, 0%, 46% | cmyk(42%, 46%, 0%, 46%) |
| CSS Name | — | — |
| Tailwind Name | — | — |
| Lightness | 42% (dark) | — |
Negative color
The color opposite to #504B8A is #AFB475.
Preview on black and white
As #504B8A has 42% lightness, this color is dark, so it has more contrast with white.
#504B8A On White Background
#504B8A
#504B8A
Text Color
This is how text looks with this color.
#504B8A On Black Background
#504B8A
#504B8A
Text Color
This is how text looks with this color.
Transform color
80, 75, 138rgb(80, 75, 138)