Color: #542F9D

#542F9D Color Information

#542F9D is a dark color. The closest websafe version is #542F9D. A complement of this color would be #789D2F, perceived brightness is 0.28, and the grayscale version is #666666.

In the HSL color space, this color has a hue angle of 260°,a saturation of 54%, and a lightness of 40%.The HSV representation shows a hue of 260°, a saturation of 100%, and a value of 100%.

In a RGB color space, #542F9D is composed of 33% red, 18% green and 62% blue. Whereas in a CMYK color space, it is composed of 46% cyan, 70% magenta, 0% yellow and 38% black.

In the Yxy color space, this color is represented as Y: 6.05, x: 0.2426, and y: 0.1501.

Color Code #542F9D

HEX
#542F9D
RGB
rgb(84, 47, 157)
HSL
hsl(260, 54%, 40%)
HSV
hsv(260, 70%, 62%)
CMYK
46%, 70%, 0%, 38%
XYZ
X: 9.78, Y: 6.05, Z: 24.48
Lab
L: 29.55, a: 36.89, b: -54.85
Name

Shades of Color #542F9D

Shades are created by darkening the original color #542F9D 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 #542F9D

Tints are created by lightening the original color #542F9D 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 #542F9D Color Code

In the HSL color space, this color has a hue angle of 260°, a saturation of 54%, and a lightness of 40%. The HSV representation shows a hue of 260°, a saturation of 70%, and a value of 62%.

  • HEX: #542F9D
  • RGB: rgb(84, 47, 157)
  • HSL: hsl(260, 54%, 40%)
  • HSV: hsv(260, 70%, 62%)
  • CMYK: 46.00% cyan, 70.00% magenta, 0.00% yellow, 38.00% black
  • XYZ: 9.78, 6.05, 24.48
  • Yxy: 6.05, 0.2426, 0.1501
  • Hunter Lab: 29.55, 36.89, -54.85
  • CIE-Lab: 29.55, 36.89, -54.85

In the XYZ color space, this color is represented as X: 9.78, Y: 6.05, Z: 24.48. The Yxy representation further refines this as Y: 6.05, x: 0.2426, and y: 0.1501.

In the Hunter Lab color space, this color is represented as L: 29.55, a: 36.89, and b: -54.85. Similarly, in the CIE-Lab color space, it is represented as L: 29.55, a: 36.89, and b: -54.85.

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 #542F9D

Triadic colors are three colors evenly spaced around the color wheel, including #542F9D. They create vibrant and balanced color schemes, perfect for designs that need contrast and harmony.

Analogous Colors of #542F9D

Analogous colors are adjacent to #542F9D on the color wheel. They create harmonious and visually pleasing designs, ideal for projects that need a cohesive look.

Monochromatic Colors of #542F9D

Monochromatic colors are variations of #542F9D, including its shades, tints, and tones. They create elegant and minimalistic designs with a unified color theme.

Complementary Color of #542F9D

The complementary color of #542F9D 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 #542F9D

/* Using HEX */
body {
  background-color: #542f9d;
}
/* Using RGB */
body {
  background-color: rgb(84, 47, 157);
}
/* Using RGB with opacity */
body {
  background-color: rgba(84, 47, 157, 0.5);
}
/* Using HSL */
body {
  background-color: hsl(260, 54%, 40%);
}
/* Text color */
p {
  color: #542f9d;
}
Text Preview
/* Box shadow */
div {
  box-shadow: 4px 4px #542f9d;
}

HTML Examples of #542F9D

<!-- Using HEX -->
<div style="background-color: #542f9d; width: 100px; height: 100px;"></div>
<!-- Using RGB -->
<div style="background-color: rgb(84, 47, 157); width: 100px; height: 100px;"></div>
<!-- Using RGB with opacity -->
<div style="background-color: rgba(84, 47, 157, 0.5); width: 100px; height: 100px;"></div>
<!-- Using HSL -->
<div style="background-color: hsl(260, 54%, 40%); width: 100px; height: 100px;"></div>
<!-- Text color -->
<p style="color: #542f9d;">This is a text example.</p>
Text Preview
<!-- Box shadow -->
<div style="box-shadow: 4px 4px #542f9d; width: 100px; height: 100px;"></div>

Related Colors of #542F9D

These colors are similar to #542F9D, with slight variations in hue. Use them to create harmonious designs or explore alternative shades for your projects.