In RGB color space, #540cb8 hex color has a red value of 84, a green value of 12 and a blue value of 184.
In CMYK color space (used in color printing), #540cb8 hex color is composed of 54.35% cyan, 93.48% magenta, 0% yellow and 27.84% black.
#540cb8 color has a hue of 265.1 degrees, a saturation of 87.76% and a lightness of 38.4%.
#540cb8 hex color contains mainly BLUE.
The closest web safe color of #540cb8 is #6600cc
#540cb8 hex color has a decimal value of 5508280.
HEX | 540cb8 | #540cb8 |
---|---|---|
RGB | 84, 12, 184 | rgb(84, 12, 184) |
RGB Percent | 32.94, 4.71, 72.16 | rgb(32.94, 4.71, 72.16) |
CMYK | 54, 93, 0, 28 | |
HSL | 265.1°, 87.76, 38.4 | hsl(265.1, 87.76%, 38.4%) |
HSV | 265.1°, 93.5, 72.2 |
XYZ | 12.439, 5.608, 45.774 |
---|---|
Hunter Lab | 23.681, 52.318, -98.026 |
CIE-LAB | 28.401, 62.471, -73.271 |
CIE-LCH | 28.401, 96.287, 310.451 |
CIE-LUV | 54.35, 93.48, 0, 27.84 |
Web Safe | 6600cc |
RGB percent of color #540cb8
CMYK percent of color #540cb8
Text with hexadecimal color #540cb8
This text has a font color of #540cb8
<p style="color:#540cb8">Text here</p>
#540cb8 Background Color
This box has a background color of #540cb8
<div style="background-color:#540cb8">Text here</div>
#540cb8 Border Color
This box has a border color of #540cb8
<div style="border: 4px solid #540cb8">Text here</div>
CSS codes
<p style="color:#540cb8">Text here</p>
<div style="background-color:#540cb8">Text here</div>
<div style="border: 4px solid #540cb8">Text here</div>
#540cb8 Color on white background
This is how a font and box color of #540cb8 will look
on a white background.
#540cb8 Color on black background
This is how a font and box color of #540cb8 hex color will look
on a black background.