Converting Colors

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

Conversions

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

FormatColor
HSL360°, 34%, 22%
CIELCh20, 19.642, 24.172
Yxy2.9891, 0.4344, 0.3292
Android (android.graphics.Color)4283114789 (0xFF4B2525)
YUV48.3620, -5.6015, 23.3615

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


Details

The CIELCh color 20, 19.642, 24.172 is a dark color, and the websafe version is hex 663333. A complement of this color would be 29, 14.162, 197.222, and the grayscale version is 20, 0.004, 296.813.

A 20% lighter version of the original color is 40, 19.511, 23.995, and 3, 12.529, 17.560 is the 20% darker color. If you saturate the color by 10%, you get 18, 24.121, 26.048, and if you desaturate by 10%, it is 22, 15.297, 22.699.

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 CIELCh color 20, 19.642, 24.172 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%.20, 19.642, 24.172The Color 20, 19.642, 24.172.100, 19.642, 24.172The Color 100, 19.642, 24.172.90, 19.642, 24.172The Color 90, 19.642, 24.172.80, 19.642, 24.172The Color 80, 19.642, 24.172.70, 19.642, 24.172The Color 70, 19.642, 24.172.60, 19.642, 24.172The Color 60, 19.642, 24.172.50, 19.642, 24.172The Color 50, 19.642, 24.172.40, 19.642, 24.172The Color 40, 19.642, 24.172.30, 19.642, 24.172The Color 30, 19.642, 24.172.20, 19.642, 24.172The Color 20, 19.642, 24.172.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%.20, 19.642, 24.172The Color 20, 19.642, 24.172.0, 19.642, 24.172The Color 0, 19.642, 24.172.10, 19.642, 24.172The Color 10, 19.642, 24.172.20, 19.642, 24.172The Color 20, 19.642, 24.172.Brightness Gradient

Saturation Gradient

Similar to the brightness gradients but the following show a change of the CIELCh color 20, 19.642, 24.172 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.20, 19.642, 24.172The Color 20, 19.642, 24.172.13, 38.694, 30.918The Color 13, 38.694, 30.918.14, 35.831, 30.835The Color 14, 35.831, 30.835.15, 32.722, 30.232The Color 15, 32.722, 30.232.16, 28.637, 28.390The Color 16, 28.637, 28.390.18, 24.121, 26.048The Color 18, 24.121, 26.048.20, 19.642, 24.172The Color 20, 19.642, 24.172.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.20, 19.642, 24.172The Color 20, 19.642, 24.172.42, 11.331, 197.991The Color 42, 11.331, 197.991.40, 8.732, 198.251The Color 40, 8.732, 198.251.37, 5.961, 198.571The Color 37, 5.961, 198.571.34, 2.996, 198.991The Color 34, 2.996, 198.991.32, 0.182, 17.849The Color 32, 0.182, 17.849.29, 3.592, 19.857The Color 29, 3.592, 19.857.27, 7.248, 20.614The Color 27, 7.248, 20.614.24, 11.154, 21.536The Color 24, 11.154, 21.536.22, 15.297, 22.699The Color 22, 15.297, 22.699.20, 19.642, 24.172The Color 20, 19.642, 24.172.Saturation Gradient

Harmonies

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.20, 19.642, 24.172The Color 20, 19.642, 24.172.29, 14.162, 197.222The Color 29, 14.162, 197.222.20, 19.642, 24.172The Color 20, 19.642, 24.172.Complementary

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.20, 19.642, 24.172The Color 20, 19.642, 24.172.20, 19.642, 254.172The Color 20, 19.642, 254.172.20, 19.642, 204.172The Color 20, 19.642, 204.172.20, 19.642, 74.172The Color 20, 19.642, 74.172.20, 19.642, 24.172The Color 20, 19.642, 24.172.Rectangle

Sweetspot

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

SweetspotThe sweet spot groups the original color and five complimentary colors.20, 19.641, 24.175The Color 20, 19.641, 24.175.20, 0.004, 296.813The Color 20, 0.004, 296.813.72, 0.009, 296.813The Color 72, 0.009, 296.813.17, 4.321, 20.297The Color 17, 4.321, 20.297.21, 29.150, 326.338The Color 21, 29.150, 326.338.36, 6.397, 20.220The Color 36, 6.397, 20.220.20, 19.641, 24.175The Color 20, 19.641, 24.175.Sweetspot

SVG Images

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

#4B2525

Previews

White Background

This preview shows how the CIELCh color 20, 19.642, 24.172 looks on a white background.

The color contrast ratio for these colors is 13.20, 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 CIELCh color 20, 19.642, 24.172 looks on a black background.

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

CIELCh 20, 19.642, 24.172 Background

This preview shows how black text looks on a background with the CIELCh color 20, 19.642, 24.172.

This preview shows how white text looks on a background with the CIELCh color 20, 19.642, 24.172.


CSS Examples


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

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

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

Here you see how black text with a 4 pixel rgb(75, 37, 37) 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 CIELCh 20, 19.642, 24.172 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(75, 37, 37) }.

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

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

Background

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

If only the background color should be changed .background{ background-color:rgb(75, 37, 37) } 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, "4B2525", 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 "360°, 51%, 30%" 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(360°, 51%, 30%)" will give you the correct HSV color as there is no need to guess the format. Other examples would be "CIELAB(20.00, 17.92, 8.04)", "CIELCH(20, 19.642, 24.172)", "YXY(2.9891, 0.4344, 0.3292)" and "CMYK(0.00, 0.51, 0.51, 0.70)".