Color: #542F98
#542F98 Color Information
#542F98 is a dark color. The closest websafe version is #542F98. A complement of this color would be #73982F, perceived brightness is 0.27, and the grayscale version is #646464.
In the HSL color space, this color has a hue angle of 261°,a saturation of 53%, and a lightness of 39%.The HSV representation shows a hue of 261°, a saturation of 100%, and a value of 100%.
In a RGB color space, #542F98 is composed of 33% red, 18% green and 60% blue. Whereas in a CMYK color space, it is composed of 45% cyan, 69% magenta, 0% yellow and 40% black.
In the Yxy color space, this color is represented as Y: 5.91, x: 0.2475, and y: 0.1548.
Color Code #542F98
Shades of Color #542F98
Shades are created by darkening the original color #542F98 in equal steps from 0% to 90%. These shades are perfect for creating depth and contrast in your designs. Use them to add visual hierarchy or highlight specific elements in your projects.
Tints of Color #542F98
Tints are created by lightening the original color #542F98 in equal steps from 0% to 90%, ending with pure white. These tints are ideal for creating soft backgrounds, subtle highlights, or cohesive UI elements that complement your designs.
About #542F98 Color Code
In the HSL color space, this color has a hue angle of 261°, a saturation of 53%, and a lightness of 39%. The HSV representation shows a hue of 261°, a saturation of 69%, and a value of 60%.
- HEX: #542F98
- RGB: rgb(84, 47, 152)
- HSL: hsl(261, 53%, 39%)
- HSV: hsv(261, 69%, 60%)
- CMYK: 45.00% cyan, 69.00% magenta, 0.00% yellow, 40.00% black
- XYZ: 9.45, 5.91, 22.82
- Yxy: 5.91, 0.2475, 0.1548
- Hunter Lab: 29.19, 35.75, -52.39
- CIE-Lab: 29.19, 35.75, -52.39
In the XYZ color space, this color is represented as X: 9.45, Y: 5.91, Z: 22.82. The Yxy representation further refines this as Y: 5.91, x: 0.2475, and y: 0.1548.
In the Hunter Lab color space, this color is represented as L: 29.19, a: 35.75, and b: -52.39. Similarly, in the CIE-Lab color space, it is represented as L: 29.19, a: 35.75, and b: -52.39.
Use these color codes in your CSS, design tools, or anywhere you need to specify a color. You can also explore its shades and tints for more creative options.
Triadic Colors of #542F98
Triadic colors are three colors evenly spaced around the color wheel, including #542F98. They create vibrant and balanced color schemes, perfect for designs that need contrast and harmony.
Monochromatic Colors of #542F98
Monochromatic colors are variations of #542F98, including its shades, tints, and tones. They create elegant and minimalistic designs with a unified color theme.
Complementary Color of #542F98
The complementary color of #542F98 is opposite it on the color wheel. Complementary colors provide strong contrast and are ideal for designs that need visual impact and attention.
CSS Examples of #542F98
/* Using HEX */ body { background-color: #542f98; }
/* Using RGB */ body { background-color: rgb(84, 47, 152); }
/* Using RGB with opacity */ body { background-color: rgba(84, 47, 152, 0.5); }
/* Using HSL */ body { background-color: hsl(261, 53%, 39%); }
/* Text color */ p { color: #542f98; }
/* Box shadow */ div { box-shadow: 4px 4px #542f98; }
HTML Examples of #542F98
<!-- Using HEX --> <div style="background-color: #542f98; width: 100px; height: 100px;"></div>
<!-- Using RGB --> <div style="background-color: rgb(84, 47, 152); width: 100px; height: 100px;"></div>
<!-- Using RGB with opacity --> <div style="background-color: rgba(84, 47, 152, 0.5); width: 100px; height: 100px;"></div>
<!-- Using HSL --> <div style="background-color: hsl(261, 53%, 39%); width: 100px; height: 100px;"></div>
<!-- Text color --> <p style="color: #542f98;">This is a text example.</p>
<!-- Box shadow --> <div style="box-shadow: 4px 4px #542f98; width: 100px; height: 100px;"></div>
Related Colors of #542F98
These colors are similar to #542F98, with slight variations in hue. Use them to create harmonious designs or explore alternative shades for your projects.