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
Hex5A616A
RGB90, 97, 106
RGB Percent35%, 38%, 42%
CMY0.6471, 0.6196, 0.5843
CMYK0.15, 0.08, 0.00, 0.58
HSL214°, 8%, 38%
HSV214°, 15%, 42%
XYZ11.0927, 11.7637, 15.3216
Conversions Part 2
FormatColor
RYB90, 95, 106
Decimal5923178
CIELab40.84, -0.65, -6.03
CIELCh41, 6.065, 263.877
Yxy11.7637, 0.2906, 0.3081
Android (android.graphics.Color)4284113258 (0xFF5A616A)
YUV95.9330, 4.9630, -5.2032

Details

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

A 20% lighter version of the original color is 9213085, and 2896699 is the 20% darker color. If you saturate the color by 10%, you get 5200746, and if you desaturate by 10%, it is 6645610.

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 5923178 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 5923178 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%.5923178The Color 5923178.16777215The Color 16777215.16449535The Color 16449535.14608112The Color 14608112.12765652The Color 12765652.10989240The Color 10989240.9213085The Color 9213085.7568003The Color 7568003.5923178The Color 5923178.Brightness Gradient

🖌️ View as Color Bucket

Brightness Gradient[Translation for "HARMONY_BRIGHTNESS_1_TEXT" not found]5923178The Color 5923178.0The Color 0.1040The Color 1040.1515045The Color 1515045.2896699The Color 2896699.4344146The Color 4344146.5923178The Color 5923178.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.5923178The Color 5923178.11882The Color 11882.340330The Color 340330.1062762The Color 1062762.1719658The Color 1719658.2442090The Color 2442090.3164522The Color 3164522.3821418The Color 3821418.4543850The Color 4543850.5200746The Color 5200746.5923178The Color 5923178.Saturation Gradient

🖌️ View as Color Bucket

Saturation Gradient[Translation for "HARMONY_SATURATION_1_TEXT" not found]5923178The Color 5923178.12162922The Color 12162922.11506026The Color 11506026.10783594The Color 10783594.10126698The Color 10126698.9404266The Color 9404266.8681834The Color 8681834.8024938The Color 8024938.7302506The Color 7302506.6645610The Color 6645610.5923178The Color 5923178.Saturation Gradient

🖌️ View as Color Bucket

Harmonies

Analogous

The analogous color harmony consists of three colors that are next to each other on the color wheel.

AnalogousThe analogous color harmony consists of three colors that are next to each other on the color wheel.5595752The Color 5595752.6315881The Color 6315881.5923178The Color 5923178.5595752The Color 5595752.Analogous

🖌️ View as Color Bucket

Triad

The triadic color harmony groups three colors that are evenly spaced from another and form a triangle on the color wheel.

TriadThe triadic color harmony groups three colors that are evenly spaced from another and form a triangle on the color wheel.5923178The Color 5923178.5923674The Color 5923674.7036252The Color 7036252.5923178The Color 5923178.Triad

🖌️ View as Color Bucket

Complementary

The complementary color scheme is a pair of colors which are on the opposite of each other on the color wheel.

ComplementaryThe complementary color scheme is a pair of colors which are on the opposite of each other on the color wheel.5923178The Color 5923178.6972250The Color 6972250.5923178The Color 5923178.Complementary

🖌️ View as Color Bucket

Split Complementary

Split-complementary colors differ from the complementary color scheme. The scheme consists of three colors, the original color and two neighbors of the complement color.

Split ComplementarySplit-complementary colors differ from the complementary color scheme. The scheme consists of three colors, the original color and two neighbors of the complement color.6316375The Color 6316375.6970968The Color 6970968.5923178The Color 5923178.6316375The Color 6316375.Split Complementary

🖌️ View as Color Bucket

Square

The square scheme is like the rectangle color scheme, but the four colors are evenly spaced on the color wheel.

SquareThe square scheme is like the rectangle color scheme, but the four colors are evenly spaced on the color wheel.5923178The Color 5923178.5661535The Color 5661535.6709335The Color 6709335.6970721The Color 6970721.5923178The Color 5923178.Square

🖌️ View as Color Bucket

Rectangle

The rectangle color scheme consists of four colors that form a rectangle on the color wheel.

RectangleThe rectangle color scheme consists of four colors that form a rectangle on the color wheel.5923178The Color 5923178.6054489The Color 6054489.6709335The Color 6709335.6577767The Color 6577767.5923178The Color 5923178.Rectangle

🖌️ View as Color Bucket

Sweetspot

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

SweetspotThe sweet spot groups the original color and five complimentary colors.5923178The Color 5923178.4539717The Color 4539717.12895428The Color 12895428.4277061The Color 4277061.5925475The Color 5925475.8619658The Color 8619658.5923178The Color 5923178.Sweetspot

🖌️ View as Color Bucket

SVG Images

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

#5A616A

Previews

White Background

 

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

The color contrast ratio for these colors is 6.26, 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 5923178 looks on a black background.

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

Decimal 5923178 Background

 

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

 

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

Color Blindness Simulation


Dichromacy

Original Color
5923178
Protanopia
6250601
Deuteranopia
6643307
Tritanopia
5923177

Trichromacy

Original Color
5923178
Protanomaly
6119529
Deuteranomaly
6381419
Tritanomaly
5923177

Monochromacy

Original Color
5923178
Achromatopsia
6316128
Achromatomaly
6185060

CSS Examples


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

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

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

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

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

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

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

Background

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

If only the background color should be changed .background{ background-color:#5A616A } 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, "5A616A", 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 "214°, 15%, 42%" 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(214°, 15%, 42%)" will give you the correct HSV color as there is no need to guess the format. Other examples would be "CIELAB(40.84, -0.65, -6.03)", "CIELCH(41, 6.065, 263.877)", "YXY(11.7637, 0.2906, 0.3081)" and "CMYK(0.15, 0.08, 0.00, 0.58)".