Converting Colors


Conversions · Details · Harmonies · Images · Preview · Color Blindness Simulation · CSS · Help

Conversions

Here you see your color converted to 15 different color formats like RGB, CMYK, HSV, HSL, CIELab, Android, Decimal, and YUV. 🎁 Convert multiple colors at once or get Conversions and Harmonies via the REST API.

Conversions Part 1
FormatColor
Hex5A5A5A
RGB90, 90, 90
RGB Percent35%, 35%, 35%
CMY0.6471, 0.6471, 0.6471
CMYK0.00, 0.00, 0.00, 0.65
HSL0°, 0%, 35%
HSV0°, 0%, 35%
XYZ9.7181, 10.2242, 11.1341
Conversions Part 2
FormatColor
RYB90, 90, 90
Decimal5921370
CIELab38.24, 0.00, -0.00
CIELCh38, 0.005, 296.813
Yxy10.2242, 0.3127, 0.3290
Android (android.graphics.Color)4284111450 (0xFF5A5A5A)
YUV90.0000, 0.0000, 0.0000

Details

The Decimal color 5921370 is a dark color, and the websafe version is hex 666666. A complement of this color would be 5921370, and the grayscale version is 5921370.

A 20% lighter version of the original color is 9211020, and 2960685 is the 20% darker color. If you saturate the color by 10%, you get 5919057, and if you desaturate by 10%, it is 5923683.

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 & Saturation Gradients

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

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

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%.5921370The Color 5921370.16777215The Color 16777215.16448250The Color 16448250.14540253The Color 14540253.12698049The Color 12698049.10921638The Color 10921638.9211020The Color 9211020.7566195The Color 7566195.5921370The Color 5921370.Brightness Gradient

🖌️ View as Color Bucket

Brightness Gradient[Translation for "HARMONY_BRIGHTNESS_1_TEXT" not found]5921370The Color 5921370.0The Color 0.1579032The Color 1579032.2960685The Color 2960685.4408131The Color 4408131.5921370The Color 5921370.Brightness Gradient

🖌️ View as Color Bucket

Saturation GradientSimilar to the brightness gradients but the following saturation gradients show a change of the {format} color {color} by changing the saturation by 10% instead.5921370The Color 5921370.5900553The Color 5900553.5902866The Color 5902866.5905179The Color 5905179.5907492The Color 5907492.5909805The Color 5909805.5912118The Color 5912118.5914431The Color 5914431.5916744The Color 5916744.5919057The Color 5919057.5921370The Color 5921370.Saturation Gradient

🖌️ View as Color Bucket

Saturation Gradient[Translation for "HARMONY_SATURATION_1_TEXT" not found]5921370The Color 5921370.5942187The Color 5942187.5939874The Color 5939874.5937561The Color 5937561.5935248The Color 5935248.5932935The Color 5932935.5930622The Color 5930622.5928309The Color 5928309.5925996The Color 5925996.5923683The Color 5923683.5921370The Color 5921370.Saturation Gradient

🖌️ View as Color Bucket

Harmonies

Sweetspot

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

SweetspotThe sweet spot groups the original color and five complimentary colors.5921370The Color 5921370.12237498The Color 12237498.3881787The Color 3881787.7697781The Color 7697781.5921370The Color 5921370.Sweetspot

🖌️ View as Color Bucket

SVG Images

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

#5A5A5A

Previews

White Background

 

This preview shows how the Decimal color 5921370 looks on a white background.

The color contrast ratio for these colors is 6.90, which passes the AA level of the Web Content Accessibility Guidelines (WCAG) 2.0 for any text size and the AAA level for large text above 18pt. Details can be found at https://www.w3.org/TR/WCAG20/.

Black Background

 

This preview shows how the Decimal color 5921370 looks on a black background.

The color contrast ratio for these colors is 3.04, which passes the AA level for large text above 18pt. Details can be found at https://www.w3.org/TR/WCAG20/.

Decimal 5921370 Background

 

This preview shows how black text looks on a background with the Decimal color 5921370.

 

This preview shows how white text looks on a background with the Decimal color 5921370.

Color Blindness Simulation


Dichromacy

Original Color
5921370
Protanopia
6052442
Deuteranopia
6444891
Tritanopia
5986656

Trichromacy

Original Color
5921370
Protanomaly
5986906
Deuteranomaly
6248539
Tritanomaly
5986654

Monochromacy

Original Color
5921370
Achromatopsia
5921370
Achromatomaly
5921370

CSS Examples


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

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

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

Here you see how black text with a 4 pixel #5A5A5A 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 Decimal 5921370 is called "border". The border property can be set on classes, ids or directly on the HTML element .border, #border, table{ border:4px solid #5A5A5A }.

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

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

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

Background

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

If only the background color should be changed .background{ background-color:#5A5A5A } 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.

How-to use Converting Colors

To convert, paste a string in one of these color formats, for example, "5A5A5A", 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%, 35%" 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%, 35%)" will give you the correct HSV color as there is no need to guess the format. Other examples would be "CIELAB(38.24, 0.00, -0.00)", "CIELCH(38, 0.005, 296.813)", "YXY(10.2242, 0.3127, 0.3290)" and "CMYK(0.00, 0.00, 0.00, 0.65)".


    FontExplorer X - Makes Everyone an Expert

Advertisment: These links are affiliate (commission) links. If you click on such a link and buy something on that website, I get a commission. For you, the price does not change.