In RGB color space, #540fa2 hex color has a red value of 84, a green value of 15 and a blue value of 162.
In CMYK color space (used in color printing), #540fa2 hex color is composed of 48.15% cyan, 90.74% magenta, 0% yellow and 36.47% black.
#540fa2 color has a hue of 268.2 degrees, a saturation of 83.05% and a lightness of 34.7%.
#540fa2 hex color contains mainly BLUE.
The closest web safe color of #540fa2 is #660099
#540fa2 hex color has a decimal value of 5509026.
HEX | 540fa2 | #540fa2 |
---|---|---|
RGB | 84, 15, 162 | rgb(84, 15, 162) |
RGB Percent | 32.94, 5.88, 63.53 | rgb(32.94, 5.88, 63.53) |
CMYK | 48, 91, 0, 36 | |
HSL | 268.2°, 83.05, 34.7 | hsl(268.2, 83.05%, 34.7%) |
HSV | 268.2°, 90.7, 63.5 |
XYZ | 10.349, 4.835, 34.57 |
---|---|
Hunter Lab | 21.989, 45.531, -77.822 |
CIE-LAB | 26.259, 56.605, -63.579 |
CIE-LCH | 26.259, 85.126, 311.679 |
CIE-LUV | 48.15, 90.74, 0, 36.47 |
Web Safe | 660099 |
RGB percent of color #540fa2
CMYK percent of color #540fa2
Text with hexadecimal color #540fa2
This text has a font color of #540fa2
<p style="color:#540fa2">Text here</p>
#540fa2 Background Color
This box has a background color of #540fa2
<div style="background-color:#540fa2">Text here</div>
#540fa2 Border Color
This box has a border color of #540fa2
<div style="border: 4px solid #540fa2">Text here</div>
CSS codes
<p style="color:#540fa2">Text here</p>
<div style="background-color:#540fa2">Text here</div>
<div style="border: 4px solid #540fa2">Text here</div>
#540fa2 Color on white background
This is how a font and box color of #540fa2 will look
on a white background.
#540fa2 Color on black background
This is how a font and box color of #540fa2 hex color will look
on a black background.