In RGB color space, #540cb2 hex color has a red value of 84, a green value of 12 and a blue value of 178.
In CMYK color space (used in color printing), #540cb2 hex color is composed of 52.81% cyan, 93.26% magenta, 0% yellow and 30.2% black.
#540cb2 color has a hue of 266 degrees, a saturation of 87.37% and a lightness of 37.3%.
#540cb2 hex color contains mainly BLUE.
The closest web safe color of #540cb2 is #660099
#540cb2 hex color has a decimal value of 5508274.
HEX | 540cb2 | #540cb2 |
---|---|---|
RGB | 84, 12, 178 | rgb(84, 12, 178) |
RGB Percent | 32.94, 4.71, 69.8 | rgb(32.94, 4.71, 69.8) |
CMYK | 53, 93, 0, 30 | |
HSL | 266°, 87.37, 37.3 | hsl(266, 87.37%, 37.3%) |
HSV | 266°, 93.3, 69.8 |
XYZ | 11.824, 5.362, 42.531 |
---|---|
Hunter Lab | 23.156, 50.623, -92.69 |
CIE-LAB | 27.742, 61.057, -70.782 |
CIE-LCH | 27.742, 93.478, 310.781 |
CIE-LUV | 52.81, 93.26, 0, 30.2 |
Web Safe | 660099 |
RGB percent of color #540cb2
CMYK percent of color #540cb2
Text with hexadecimal color #540cb2
This text has a font color of #540cb2
<p style="color:#540cb2">Text here</p>
#540cb2 Background Color
This box has a background color of #540cb2
<div style="background-color:#540cb2">Text here</div>
#540cb2 Border Color
This box has a border color of #540cb2
<div style="border: 4px solid #540cb2">Text here</div>
CSS codes
<p style="color:#540cb2">Text here</p>
<div style="background-color:#540cb2">Text here</div>
<div style="border: 4px solid #540cb2">Text here</div>
#540cb2 Color on white background
This is how a font and box color of #540cb2 will look
on a white background.
#540cb2 Color on black background
This is how a font and box color of #540cb2 hex color will look
on a black background.