Converting Colors

Conversions · Details · Harmonies · Images · Preview · CSS · Help

Conversions

New: Converting Colors offers a new tool to do mass color conversions.

FormatColor
HSL0°, 0%, 69%
CIELCh71, 0.009, 296.813
Yxy42.8690, 0.3127, 0.3290
Android (android.graphics.Color)4289703855 (0xFFAFAFAF)
YUV175.0000, 0.0000, 0.0000

Get Conversions and Harmonies as JSON or XML via the REST API.


Details

The Hex color AFAFAF is a light color, and the websafe version is hex 999999. A complement of this color would be AFAFAF, and the grayscale version is AFAFAF.

A 20% lighter version of the original color is E6E6E6, and 7B7B7B is the 20% darker color. If you saturate the color by 10%, you get AF9E9E, and if you desaturate by 10%, it is AFC1C1.

Distribution

RGB Color DistributionThe distribution of the RGB values, red, green and blue.RedThe Perecentage of Red in the Color.GreenThe Perecentage of Green in the Color.BlueThe Perecentage of Blue in the Color.RGB
RYB Color DistributionThe distribution of the RYB values, red, yellow and blue.RedThe Perecentage of Red in the Color.YellowThe Perecentage of Yellow in the Color.BlueThe Perecentage of Blue in the Color.RYB
CMYK Color DistributionThe distribution of the CMYK values, Cyan, Magenta, Yellow and Black.CyanThe Perecentage of Cyan in the Color.MagentaThe Perecentage of Magenta in the Color.YellowThe Perecentage of Yellow in the Color.BlackThe Perecentage of Black in the Color.CMYK
CMY Color DistributionThe distribution of the CMY values, Cyan, Magenta, Yellow.CyanThe Perecentage of Cyan in the Color.MagentaThe Perecentage of Magenta in the Color.YellowThe Perecentage of Yellow in the Color.CMY

Brightness Gradient

These gradients show how the Hex color AFAFAF changes by changing the brightness by 10 percent. The first figure shows a shift by +10% for each color and the second figure -10%.

Brightness GradientThese gradients show how the {format} color {color} changes by changing the brightness by 10 percent. The first figure shows a shift by +10% for each color and the second figure -10%.AFAFAFThe Color AFAFAF.FFFFFFThe Color FFFFFF.E6E6E6The Color E6E6E6.CACACAThe Color CACACA.AFAFAFThe Color AFAFAF.Brightness Gradient
Brightness GradientThese gradients show how the {format} color {color} changes by changing the brightness by 10 percent. The first figure shows a shift by +10% for each color and the second figure -10%.AFAFAFThe Color AFAFAF.000000The Color 000000.050505The Color 050505.1E1E1EThe Color 1E1E1E.333333The Color 333333.4A4A4AThe Color 4A4A4A.626262The Color 626262.7B7B7BThe Color 7B7B7B.949494The Color 949494.AFAFAFThe Color AFAFAF.Brightness Gradient

Saturation Gradient

Similar to the brightness gradients but the following show a change of the Hex color AFAFAF by changing the saturation by 10% instead.

Saturation GradientSimilar to the brightness gradients but the following show a change of the {format} color {color} by changing the saturation by 10% instead.AFAFAFThe Color AFAFAF.AF1111The Color AF1111.AF2323The Color AF2323.AF3535The Color AF3535.AF4646The Color AF4646.AF5858The Color AF5858.AF6969The Color AF6969.AF7A7AThe Color AF7A7A.AF8C8CThe Color AF8C8C.AF9E9EThe Color AF9E9E.AFAFAFThe Color AFAFAF.Saturation Gradient
Saturation GradientSimilar to the brightness gradients but the following show a change of the {format} color {color} by changing the saturation by 10% instead.AFAFAFThe Color AFAFAF.AFFFFFThe Color AFFFFF.AFF5F5The Color AFF5F5.AFE4E4The Color AFE4E4.AFD2D2The Color AFD2D2.AFC1C1The Color AFC1C1.AFAFAFThe Color AFAFAF.Saturation Gradient

Harmonies

Sweetspot

The sweet spot groups the original color and five complimentary colors.

SweetspotThe sweet spot groups the original color and five complimentary colors.AFAFAFThe Color AFAFAF.F2F2F2The Color F2F2F2.737373The Color 737373.E3E3E3The Color E3E3E3.AFAFAFThe Color AFAFAF.Sweetspot

SVG Images

A selection of SVG images using the hex version #AFAFAF of the current color.

#AFAFAF

Previews

White Background

This preview shows how the Hex color AFAFAF looks on a white background. The color contrast ratio for these colors is 2.19, which fails to comply with the Web Content Accessibility Guidelines (WCAG) 2.0. Details can be found at https://www.w3.org/TR/WCAG20/.

Black Background

This preview shows how the Hex color AFAFAF looks on a black background. The color contrast ratio for these colors is 9.57, which passes the AAA level of the Web Content Accessibility Guidelines (WCAG) 2.0 for all text sizes. Details can be found at https://www.w3.org/TR/WCAG20/.

Hex AFAFAF Background

This preview shows how black text looks on a background with the Hex color AFAFAF.

This preview shows how white text looks on a background with the Hex color AFAFAF.


CSS Examples


The CSS property to change the color of the text to Hex AFAFAF is called "color". The color property can be set on classes, ids or directly on the HTML element .text, #text, p{ color:#AFAFAF }.

This example shows how text in the color #AFAFAF looks like.

If you want to add a text shadow in that color use .shadow{ text-shadow: 4px 4px 2px #AFAFAF }.

Here you see how black text with a 4 pixel #AFAFAF colored shadow looks like.

Border

This example shows the color as border, it can be applied via the CSS property "border" or "border-color".

The CSS property to change the border of an element to Hex AFAFAF is called "border". The border property can be set on classes, ids or directly on the HTML element .border, #border, table{ border:4px solid #AFAFAF }.

If only the border color should be changed .border{ border-color:#AFAFAF } can be used.

Here you see how a box with a 4 pixel #AFAFAF colored shadow looks like.

If you want to add a box shadow in that color use .boxshadow{ -moz-box-shadow:4px 4px 4px 4px #AFAFAF; -webkit-box-shadow:4px 4px 4px 4px #AFAFAF; box-shadow:4px 4px 4px 4px #AFAFAF }.

Background

The CSS property to change the background color of an element to Hex AFAFAF is called "background". The background property can be set on classes, ids or directly on the HTML element .background, #background, body{ background:#AFAFAF }.

If only the background color should be changed .background{ background-color:#AFAFAF } can be used.

This example shows the color as background, it is applied via the CSS property "background".



To optimize and compress your CSS code, you can use our online CSS compressor and optimizer based on csstidy. If you want to create a linear gradient as background or border, check our CSS Gradient Generator.

Upskill your career and get 10% off on a Udacity Nanodegrees ProgramAdvertisment🛈

How-to use Converting Colors

To convert, paste a string in one of these color formats, for example, "AFAFAF", into the input field and click on convert. The result will be in the section Color Conversions, and the following sections will provide you with further details on the color.

Some color formats use the same notation, and the conversion will guess the composition of the search query. As an example, if you try to convert the string "0°, 0%, 69%" it could be an HSV or HSL color, the conversion will assume HSL in this case.

As this could lead to wrong conversions, you can define which format you are passing by wrapping your color string in brackets with the format in front. The search string "HSV(0°, 0%, 69%)" will give you the correct HSV color as there is no need to guess the format. Other examples would be "CIELAB(71.47, 0.00, -0.01)", "CIELCH(71, 0.009, 296.813)", "YXY(42.8690, 0.3127, 0.3290)" and "CMYK(0.00, 0.00, 0.00, 0.31)".