In RGB color space, #540ca2 hex color has a red value of 84, a green value of 12 and a blue value of 162.
In CMYK color space (used in color printing), #540ca2 hex color is composed of 48.15% cyan, 92.59% magenta, 0% yellow and 36.47% black.
#540ca2 color has a hue of 268.8 degrees, a saturation of 86.21% and a lightness of 34.1%.
#540ca2 hex color contains mainly BLUE.
The closest web safe color of #540ca2 is #660099
#540ca2 hex color has a decimal value of 5508258.
HEX | 540ca2 | #540ca2 |
---|---|---|
RGB | 84, 12, 162 | rgb(84, 12, 162) |
RGB Percent | 32.94, 4.71, 63.53 | rgb(32.94, 4.71, 63.53) |
CMYK | 48, 93, 0, 36 | |
HSL | 268.8°, 86.21, 34.1 | hsl(268.8, 86.21%, 34.1%) |
HSV | 268.8°, 92.6, 63.5 |
XYZ | 10.309, 4.756, 34.557 |
---|---|
Hunter Lab | 21.808, 46.214, -78.684 |
CIE-LAB | 26.028, 57.294, -63.961 |
CIE-LCH | 26.028, 85.87, 311.853 |
CIE-LUV | 48.15, 92.59, 0, 36.47 |
Web Safe | 660099 |
RGB percent of color #540ca2
CMYK percent of color #540ca2
Text with hexadecimal color #540ca2
This text has a font color of #540ca2
<p style="color:#540ca2">Text here</p>
#540ca2 Background Color
This box has a background color of #540ca2
<div style="background-color:#540ca2">Text here</div>
#540ca2 Border Color
This box has a border color of #540ca2
<div style="border: 4px solid #540ca2">Text here</div>
CSS codes
<p style="color:#540ca2">Text here</p>
<div style="background-color:#540ca2">Text here</div>
<div style="border: 4px solid #540ca2">Text here</div>
#540ca2 Color on white background
This is how a font and box color of #540ca2 will look
on a white background.
#540ca2 Color on black background
This is how a font and box color of #540ca2 hex color will look
on a black background.