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%, 26%
CIELCh28, 0.004, 296.813
Yxy5.4480, 0.3127, 0.3290
Android (android.graphics.Color)4282532418 (0xFF424242)
YUV66.0000, 0.0000, 0.0000

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


Details

The RGB color 66, 66, 66 is a dark color, and the websafe version is hex 333333. A complement of this color would be 66, 66, 66, and the grayscale version is 66, 66, 66.

A 20% lighter version of the original color is 114, 114, 114, and 23, 23, 23 is the 20% darker color. If you saturate the color by 10%, you get 66, 59, 59, and if you desaturate by 10%, it is 66, 73, 73.

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 RGB color 66, 66, 66 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%.66, 66, 66The Color 66, 66, 66.255, 255, 255The Color 255, 255, 255.249, 249, 249The Color 249, 249, 249.221, 221, 221The Color 221, 221, 221.193, 193, 193The Color 193, 193, 193.166, 166, 166The Color 166, 166, 166.139, 139, 139The Color 139, 139, 139.114, 114, 114The Color 114, 114, 114.89, 89, 89The Color 89, 89, 89.66, 66, 66The Color 66, 66, 66.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%.66, 66, 66The Color 66, 66, 66.0, 0, 0The Color 0, 0, 0.23, 23, 23The Color 23, 23, 23.44, 44, 44The Color 44, 44, 44.66, 66, 66The Color 66, 66, 66.Brightness Gradient

Saturation Gradient

Similar to the brightness gradients but the following show a change of the RGB color 66, 66, 66 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.66, 66, 66The Color 66, 66, 66.66, 7, 7The Color 66, 7, 7.66, 13, 13The Color 66, 13, 13.66, 20, 20The Color 66, 20, 20.66, 26, 26The Color 66, 26, 26.66, 33, 33The Color 66, 33, 33.66, 40, 40The Color 66, 40, 40.66, 46, 46The Color 66, 46, 46.66, 53, 53The Color 66, 53, 53.66, 59, 59The Color 66, 59, 59.66, 66, 66The Color 66, 66, 66.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.66, 66, 66The Color 66, 66, 66.66, 125, 125The Color 66, 125, 125.66, 119, 119The Color 66, 119, 119.66, 112, 112The Color 66, 112, 112.66, 106, 106The Color 66, 106, 106.66, 99, 99The Color 66, 99, 99.66, 92, 92The Color 66, 92, 92.66, 86, 86The Color 66, 86, 86.66, 79, 79The Color 66, 79, 79.66, 73, 73The Color 66, 73, 73.66, 66, 66The Color 66, 66, 66.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.66, 66, 66The Color 66, 66, 66.171, 171, 171The Color 171, 171, 171.43, 43, 43The Color 43, 43, 43.87, 87, 87The Color 87, 87, 87.66, 66, 66The Color 66, 66, 66.Sweetspot

SVG Images

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

#424242

Previews

White Background

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

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

Black Background

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

The color contrast ratio for these colors is 2.09, which fails to comply with the Web Content Accessibility Guidelines (WCAG) 2.0. Details can be found at https://www.w3.org/TR/WCAG20/.

RGB 66, 66, 66 Background

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

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


CSS Examples


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

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

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

Here you see how black text with a 4 pixel rgb(66, 66, 66) 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 66, 66, 66 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(66, 66, 66) }.

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

Here you see how a box with a 4 pixel rgb(66, 66, 66) 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(66, 66, 66); -webkit-box-shadow:4px 4px 4px 4px rgb(66, 66, 66); box-shadow:4px 4px 4px 4px rgb(66, 66, 66) }.

Background

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

If only the background color should be changed .background{ background-color:rgb(66, 66, 66) } 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, "424242", 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%, 26%" 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%, 26%)" will give you the correct HSV color as there is no need to guess the format. Other examples would be "CIELAB(27.97, 0.00, -0.00)", "CIELCH(28, 0.004, 296.813)", "YXY(5.4480, 0.3127, 0.3290)" and "CMYK(0.00, 0.00, 0.00, 0.74)".