In RGB color space, #540cab hex color has a red value of 84, a green value of 12 and a blue value of 171.
In CMYK color space (used in color printing), #540cab hex color is composed of 50.88% cyan, 92.98% magenta, 0% yellow and 32.94% black.
#540cab color has a hue of 267.2 degrees, a saturation of 86.89% and a lightness of 35.9%.
#540cab hex color contains mainly BLUE.
The closest web safe color of #540cab is #660099
#540cab hex color has a decimal value of 5508267.
HEX | 540cab | #540cab |
---|---|---|
RGB | 84, 12, 171 | rgb(84, 12, 171) |
RGB Percent | 32.94, 4.71, 67.06 | rgb(32.94, 4.71, 67.06) |
CMYK | 51, 93, 0, 33 | |
HSL | 267.2°, 86.89, 35.9 | hsl(267.2, 86.89%, 35.9%) |
HSV | 267.2°, 93, 67.1 |
XYZ | 11.138, 5.088, 38.923 |
---|---|
Hunter Lab | 22.557, 48.666, -86.519 |
CIE-LAB | 26.984, 59.401, -67.832 |
CIE-LCH | 26.984, 90.165, 311.209 |
CIE-LUV | 50.88, 92.98, 0, 32.94 |
Web Safe | 660099 |
RGB percent of color #540cab
CMYK percent of color #540cab
Text with hexadecimal color #540cab
This text has a font color of #540cab
<p style="color:#540cab">Text here</p>
#540cab Background Color
This box has a background color of #540cab
<div style="background-color:#540cab">Text here</div>
#540cab Border Color
This box has a border color of #540cab
<div style="border: 4px solid #540cab">Text here</div>
CSS codes
<p style="color:#540cab">Text here</p>
<div style="background-color:#540cab">Text here</div>
<div style="border: 4px solid #540cab">Text here</div>
#540cab Color on white background
This is how a font and box color of #540cab will look
on a white background.
#540cab Color on black background
This is how a font and box color of #540cab hex color will look
on a black background.