#512DA8 - Royalty
Hex color #512DA8 is called Royalty. It consists of 32% red, 18% green, and 66% blue in RGB color space. In CMYK it is 52% cyan, 73% magenta, 0% yellow, and 34% black. In HSL it is 258° hue, 58% 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 | Royalty | — |
| HEX | #512DA8 | #512DA8 |
| HEXA | #512DA8FF | #512DA8FF |
| RGB | 81, 45, 168 | rgb(81, 45, 168) |
| RGBA | 81, 45, 168, 1 | rgba(81, 45, 168, 1) |
| HSL | 258%, 58%, 42% | hsl(258%, 58%, 42%) |
| CMYK | 52%, 73%, 0%, 34% | cmyk(52%, 73%, 0%, 34%) |
| CSS Name | — | — |
| Tailwind Name | deep-purple-700 | — |
| Lightness | 42% (dark) | — |
As you see on the table, not all names are available for this color.
- The closest color with CSS name is #4b0082 (indigo)
Negative color
The color opposite to #512DA8 is #AED257.
Preview on black and white
As #512DA8 has 42% lightness, this color is dark, so it has more contrast with white.
#512DA8 On White Background
#512DA8
#512DA8
Text Color
This is how text looks with this color.
#512DA8 On Black Background
#512DA8
#512DA8
Text Color
This is how text looks with this color.
Transform color
81, 45, 168rgb(81, 45, 168)