Color: #AF12A2

#AF12A2 Color Information

#AF12A2 is a dark color. The closest websafe version is #AF12A2. A complement of this color would be #12AF1F, perceived brightness is 0.32, and the grayscale version is #616161.

In the HSL color space, this color has a hue angle of 305°,a saturation of 81%, and a lightness of 38%.The HSV representation shows a hue of 305°, a saturation of 90%, and a value of 69%.

In a RGB color space, #AF12A2 is composed of 69% red, 7% green and 64% blue. Whereas in a CMYK color space, it is composed of 0% cyan, 90% magenta, 7% yellow and 31% black.

In the Yxy color space, this color is represented as Y: 12.16, x: 0.3842, and y: 0.1939.

Color Code #AF12A2

#AF12A2rgb(175, 18, 162)
HEX
#AF12A2
RGB
rgb(175, 18, 162)
HSL
hsl(305, 81%, 38%)
HSV
hsv(305, 90%, 69%)
CMYK
0%, 90%, 7%, 31%
XYZ
X: 24.10, Y: 12.16, Z: 26.46
Lab
L: 41.47, a: 67.21, b: -37.80
Name

Shades of Color #AF12A2

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

Tints are created by lightening the original color #AF12A2 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.

#AF12A2rgb(175, 18, 162)

About #AF12A2 Color Code

In the HSL color space, this color has a hue angle of 305°, a saturation of 81%, and a lightness of 38%. The HSV representation shows a hue of 305°, a saturation of 90%, and a value of 69%.

  • HEX: #AF12A2
  • RGB: rgb(175, 18, 162)
  • HSL: hsl(305, 81%, 38%)
  • HSV: hsv(305, 90%, 69%)
  • CMYK: 0.00% cyan, 90.00% magenta, 7.00% yellow, 31.00% black
  • XYZ: 24.10, 12.16, 26.46
  • Yxy: 12.16, 0.3842, 0.1939
  • Hunter Lab: 41.47, 67.21, -37.80
  • CIE-Lab: 41.47, 67.21, -37.80

In the XYZ color space, this color is represented as X: 24.10, Y: 12.16, Z: 26.46. The Yxy representation further refines this as Y: 12.16, x: 0.3842, and y: 0.1939.

In the Hunter Lab color space, this color is represented as L: 41.47, a: 67.21, and b: -37.80. Similarly, in the CIE-Lab color space, it is represented as L: 41.47, a: 67.21, and b: -37.80.

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 #AF12A2

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

Analogous Colors of #AF12A2

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

Split Complementary Colors of #AF12A2

Split complementary colors are two colors adjacent to the complementary color of #AF12A2. They create a balanced and visually appealing color scheme.

Tetradic Colors of #AF12A2

Tetradic colors form a rectangle on the color wheel, including #AF12A2. They provide vibrant and diverse color schemes for creative designs.

Monochromatic Colors of #AF12A2

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

Complementary Color of #AF12A2

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

/* Using HEX */
body {
  background-color: #af12a2;
}
/* Using RGB */
body {
  background-color: rgb(175, 18, 162);
}
/* Using RGB with opacity */
body {
  background-color: rgba(175, 18, 162, 0.5);
}
/* Using HSL */
body {
  background-color: hsl(305, 81%, 38%);
}
/* Text color */
p {
  color: #af12a2;
}
Text Preview
/* Box shadow */
div {
  box-shadow: 4px 4px #af12a2;
}
/* Border color */
.box {
  border: 4px solid #af12a2;
}
/* Text shadow */
h1 {
  color: #222;
  text-shadow: 2px 2px 0 #af12a2;
}
Text Shadow Preview
/* Background with text */
div {
  background: #af12a2;
  color: #fff;
  padding: 16px;
  border-radius: 8px;
}
#AF12A2
On Black Background
#AF12A2
On White Background
#AF12A2

HTML Examples of #AF12A2

<!-- Using HEX -->
<div style="background-color: #af12a2; width: 100px; height: 100px;"></div>
<!-- Using RGB -->
<div style="background-color: rgb(175, 18, 162); width: 100px; height: 100px;"></div>
<!-- Using RGB with opacity -->
<div style="background-color: rgba(175, 18, 162, 0.5); width: 100px; height: 100px;"></div>
<!-- Using HSL -->
<div style="background-color: hsl(305, 81%, 38%); width: 100px; height: 100px;"></div>
<!-- Text color -->
<p style="color: #af12a2;">This is a text example.</p>
Text Preview
<!-- Box shadow -->
<div style="box-shadow: 4px 4px #af12a2; width: 100px; height: 100px;"></div>
<!-- Border color -->
<div style="border: 4px solid #af12a2; width: 100px; height: 100px;"></div>
<!-- Text shadow -->
<h1 style="color: #222; text-shadow: 2px 2px 0 #af12a2;">Text Shadow Preview</h1>
Text Shadow Preview
<!-- Background with text -->
<div style="background: #af12a2; color: #fff; padding: 16px; border-radius: 8px;">
  #AF12A2
</div>
#AF12A2
On Black Background
#AF12A2
On White Background
#AF12A2

Related Colors of #AF12A2

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