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
Hex807A7A
RGB128, 122, 122
RGB Percent50%, 48%, 48%
CMY0.4980, 0.5216, 0.5216
CMYK0.00, 0.05, 0.05, 0.50
HSL0°, 2%, 49%
HSV0°, 5%, 50%
XYZ19.3745, 19.9134, 21.2349
Conversions Part 2
FormatColor
RYB128, 122, 122
Decimal8419962
CIELab51.74, 2.28, 0.81
CIELCh52, 2.422, 19.514
Yxy19.9134, 0.3201, 0.3290
Android (android.graphics.Color)4286610042 (0xFF807A7A)
YUV123.7940, -0.8844, 3.6887

Details

The RGB color 128, 122, 122 is a dark color, and the websafe version is hex 666666. A complement of this color would be 122, 128, 128, and the grayscale version is 124, 124, 124.

A 20% lighter version of the original color is 181, 174, 174, and 79, 73, 73 is the 20% darker color. If you saturate the color by 10%, you get 128, 109, 109, and if you desaturate by 10%, it is 128, 135, 135.

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 RGB color 128, 122, 122 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 RGB color 128, 122, 122 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%.128, 122, 122The Color 128, 122, 122.255, 255, 255The Color 255, 255, 255.237, 230, 230The Color 237, 230, 230.208, 202, 202The Color 208, 202, 202.181, 174, 174The Color 181, 174, 174.154, 148, 148The Color 154, 148, 148.128, 122, 122The Color 128, 122, 122.Brightness Gradient

🖌️ View as Color Bucket

Brightness Gradient[Translation for "HARMONY_BRIGHTNESS_1_TEXT" not found]128, 122, 122The Color 128, 122, 122.0, 0, 0The Color 0, 0, 0.13, 4, 4The Color 13, 4, 4.35, 30, 30The Color 35, 30, 30.56, 51, 51The Color 56, 51, 51.79, 73, 73The Color 79, 73, 73.103, 97, 97The Color 103, 97, 97.128, 122, 122The Color 128, 122, 122.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.128, 122, 122The Color 128, 122, 122.128, 7, 7The Color 128, 7, 7.128, 20, 20The Color 128, 20, 20.128, 32, 32The Color 128, 32, 32.128, 45, 45The Color 128, 45, 45.128, 58, 58The Color 128, 58, 58.128, 71, 71The Color 128, 71, 71.128, 84, 84The Color 128, 84, 84.128, 96, 96The Color 128, 96, 96.128, 109, 109The Color 128, 109, 109.128, 122, 122The Color 128, 122, 122.Saturation Gradient

🖌️ View as Color Bucket

Saturation Gradient[Translation for "HARMONY_SATURATION_1_TEXT" not found]128, 122, 122The Color 128, 122, 122.128, 237, 237The Color 128, 237, 237.128, 224, 224The Color 128, 224, 224.128, 212, 212The Color 128, 212, 212.128, 199, 199The Color 128, 199, 199.128, 186, 186The Color 128, 186, 186.128, 173, 173The Color 128, 173, 173.128, 160, 160The Color 128, 160, 160.128, 148, 148The Color 128, 148, 148.128, 135, 135The Color 128, 135, 135.128, 122, 122The Color 128, 122, 122.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.127, 122, 124The Color 127, 122, 124.128, 122, 120The Color 128, 122, 120.128, 122, 122The Color 128, 122, 122.127, 122, 124The Color 127, 122, 124.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.128, 122, 122The Color 128, 122, 122.121, 124, 127The Color 121, 124, 127.121, 124, 121The Color 121, 124, 121.128, 122, 122The Color 128, 122, 122.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.128, 122, 122The Color 128, 122, 122.122, 128, 128The Color 122, 128, 128.128, 122, 122The Color 128, 122, 122.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.119, 124, 126The Color 119, 124, 126.119, 125, 122The Color 119, 125, 122.128, 122, 122The Color 128, 122, 122.119, 124, 126The Color 119, 124, 126.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.128, 122, 122The Color 128, 122, 122.123, 123, 127The Color 123, 123, 127.118, 125, 125The Color 118, 125, 125.124, 124, 119The Color 124, 124, 119.128, 122, 122The Color 128, 122, 122.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.128, 122, 122The Color 128, 122, 122.120, 124, 127The Color 120, 124, 127.118, 125, 125The Color 118, 125, 125.127, 123, 119The Color 127, 123, 119.128, 122, 122The Color 128, 122, 122.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.128, 122, 122The Color 128, 122, 122.84, 84, 84The Color 84, 84, 84.212, 212, 212The Color 212, 212, 212.84, 83, 83The Color 84, 83, 83.128, 122, 128The Color 128, 122, 128.166, 164, 164The Color 166, 164, 164.128, 122, 122The Color 128, 122, 122.Sweetspot

🖌️ View as Color Bucket

SVG Images

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

#807A7A

Previews

White Background

 

This preview shows how the RGB color 128, 122, 122 looks on a white background.

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

Black Background

 

This preview shows how the RGB color 128, 122, 122 looks on a black background.

The color contrast ratio for these colors is 4.98, 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/.

RGB 128, 122, 122 Background

 

This preview shows how black text looks on a background with the RGB color 128, 122, 122.

 

This preview shows how white text looks on a background with the RGB color 128, 122, 122.

Color Blindness Simulation


Dichromacy

Original Color
128, 122, 122
Protanopia
126, 123, 122
Deuteranopia
135, 119, 123
Tritanopia
129, 121, 130

Trichromacy

Original Color
128, 122, 122
Protanomaly
127, 123, 122
Deuteranomaly
132, 120, 123
Tritanomaly
129, 121, 127

Monochromacy

Original Color
128, 122, 122
Achromatopsia
124, 124, 124
Achromatomaly
125, 123, 123

CSS Examples


The CSS property to change the color of the text to RGB 128, 122, 122 is called "color". The color property can be set on classes, ids or directly on the HTML element .text, #text, p{ color:rgb(128, 122, 122) }.

This example shows how text in the color rgb(128, 122, 122) looks like.

If you want to add a text shadow in that color use .shadow{ text-shadow: 4px 4px 2px rgb(128, 122, 122) }.

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

If only the border color should be changed .border{ border-color:rgb(128, 122, 122) } can be used.

Here you see how a box with a 4 pixel rgb(128, 122, 122) colored shadow looks like.

If you want to add a box shadow in that color use .boxshadow{ -moz-box-shadow:4px 4px 4px 4px rgb(128, 122, 122); -webkit-box-shadow:4px 4px 4px 4px rgb(128, 122, 122); box-shadow:4px 4px 4px 4px rgb(128, 122, 122) }.

Background

The CSS property to change the background color of an element to RGB 128, 122, 122 is called "background". The background property can be set on classes, ids or directly on the HTML element .background, #background, body{ background:rgb(128, 122, 122) }.

If only the background color should be changed .background{ background-color:rgb(128, 122, 122) } 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, "807A7A", 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°, 5%, 50%" 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°, 5%, 50%)" will give you the correct HSV color as there is no need to guess the format. Other examples would be "CIELAB(51.74, 2.28, 0.81)", "CIELCH(52, 2.422, 19.514)", "YXY(19.9134, 0.3201, 0.3290)" and "CMYK(0.00, 0.05, 0.05, 0.50)".