Converting Colors

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

Conversions

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

FormatColor
HSL293°, 37%, 43%
CIELCh41, 52.564, 323.319
Yxy11.9151, 0.3039, 0.1990
Android (android.graphics.Color)4287317397 (0xFF8B4595)
YUV99.0500, 24.6254, 35.0361

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


Details

The XYZ color 18.2004, 11.9151, 29.7744 is a dark color, and the websafe version is hex 993399. A complement of this color would be 15.0464, 23.5871, 9.3904, and the grayscale version is 11.8098, 12.4248, 13.5306.

A 20% lighter version of the original color is 39.7441, 29.2141, 60.0440, and 6.2428, 3.2612, 11.8557 is the 20% darker color. If you saturate the color by 10%, you get 17.0881, 10.1480, 29.4921, and if you desaturate by 10%, it is 19.5490, 14.1463, 30.1342.

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 XYZ color 18.2004, 11.9151, 29.7744 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%.18.2004, 11.9151, 29.7744The Color 18.2004, 11.9151, 29.7744.235.0220, 203.8424, 315.0260The Color 235.0220, 203.8424, 315.0260.192.8781, 165.0276, 261.2392The Color 192.8781, 165.0276, 261.2392.156.0999, 131.4821, 213.9521The Color 156.0999, 131.4821, 213.9521.124.3219, 102.8215, 172.7461The Color 124.3219, 102.8215, 172.7461.97.1789, 78.6614, 137.2026The Color 97.1789, 78.6614, 137.2026.74.3055, 58.6175, 106.9031The Color 74.3055, 58.6175, 106.9031.55.3363, 42.3052, 81.4291The Color 55.3363, 42.3052, 81.4291.39.9059, 29.3404, 60.3620The Color 39.9059, 29.3404, 60.3620.27.6491, 19.3385, 43.2833The Color 27.6491, 19.3385, 43.2833.18.2004, 11.9151, 29.7744The Color 18.2004, 11.9151, 29.7744.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%.18.2004, 11.9151, 29.7744The Color 18.2004, 11.9151, 29.7744.0.0000, 0.0000, 0.0000The Color 0.0000, 0.0000, 0.0000.0.0906, 0.0000, 1.1287The Color 0.0906, 0.0000, 1.1287.1.1801, 0.1197, 3.0665The Color 1.1801, 0.1197, 3.0665.3.0497, 1.2724, 6.4814The Color 3.0497, 1.2724, 6.4814.6.2661, 3.2664, 11.7920The Color 6.2661, 3.2664, 11.7920.11.1945, 6.6859, 19.4168The Color 11.1945, 6.6859, 19.4168.18.2004, 11.9151, 29.7744The Color 18.2004, 11.9151, 29.7744.Brightness Gradient

Saturation Gradient

Similar to the brightness gradients but the following show a change of the XYZ color 18.2004, 11.9151, 29.7744 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.18.2004, 11.9151, 29.7744The Color 18.2004, 11.9151, 29.7744.14.6886, 6.9456, 29.0005The Color 14.6886, 6.9456, 29.0005.14.9727, 7.2435, 29.0430The Color 14.9727, 7.2435, 29.0430.15.4961, 7.8561, 29.1336The Color 15.4961, 7.8561, 29.1336.16.1933, 8.8082, 29.2807The Color 16.1933, 8.8082, 29.2807.17.0881, 10.1480, 29.4921The Color 17.0881, 10.1480, 29.4921.18.2004, 11.9151, 29.7744The Color 18.2004, 11.9151, 29.7744.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.18.2004, 11.9151, 29.7744The Color 18.2004, 11.9151, 29.7744.40.4697, 51.9750, 36.3332The Color 40.4697, 51.9750, 36.3332.36.7591, 45.0836, 35.1986The Color 36.7591, 45.0836, 35.1986.33.3827, 38.8526, 34.1738The Color 33.3827, 38.8526, 34.1738.30.3307, 33.2622, 33.2556The Color 30.3307, 33.2622, 33.2556.27.5925, 28.2914, 32.4405The Color 27.5925, 28.2914, 32.4405.25.1573, 23.9185, 31.7248The Color 25.1573, 23.9185, 31.7248.23.0134, 20.1201, 31.1046The Color 23.0134, 20.1201, 31.1046.21.1484, 16.8716, 30.5759The Color 21.1484, 16.8716, 30.5759.19.5490, 14.1463, 30.1342The Color 19.5490, 14.1463, 30.1342.18.2004, 11.9151, 29.7744The Color 18.2004, 11.9151, 29.7744.Saturation Gradient

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.14.4481, 11.9151, 42.9570The Color 14.4481, 11.9151, 42.9570.20.1721, 11.9151, 15.5453The Color 20.1721, 11.9151, 15.5453.18.2004, 11.9151, 29.7744The Color 18.2004, 11.9151, 29.7744.14.4481, 11.9151, 42.9570The Color 14.4481, 11.9151, 42.9570.Analogous

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.18.2004, 11.9151, 29.7744The Color 18.2004, 11.9151, 29.7744.5.8816, 11.9151, 23.0649The Color 5.8816, 11.9151, 23.0649.12.1905, 11.9151, 1.3428The Color 12.1905, 11.9151, 1.3428.18.2004, 11.9151, 29.7744The Color 18.2004, 11.9151, 29.7744.Triad

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.18.2004, 11.9151, 29.7744The Color 18.2004, 11.9151, 29.7744.15.0464, 23.5871, 9.3904The Color 15.0464, 23.5871, 9.3904.18.2004, 11.9151, 29.7744The Color 18.2004, 11.9151, 29.7744.Complementary

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.5.5373, 11.9151, 10.7023The Color 5.5373, 11.9151, 10.7023.8.6878, 11.9151, 1.7161The Color 8.6878, 11.9151, 1.7161.18.2004, 11.9151, 29.7744The Color 18.2004, 11.9151, 29.7744.5.5373, 11.9151, 10.7023The Color 5.5373, 11.9151, 10.7023.Split Complementary

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.18.2004, 11.9151, 29.7744The Color 18.2004, 11.9151, 29.7744.7.5189, 11.9151, 37.8054The Color 7.5189, 11.9151, 37.8054.6.4442, 11.9151, 4.0964The Color 6.4442, 11.9151, 4.0964.16.2377, 11.9151, 2.4236The Color 16.2377, 11.9151, 2.4236.18.2004, 11.9151, 29.7744The Color 18.2004, 11.9151, 29.7744.Square

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.18.2004, 11.9151, 29.7744The Color 18.2004, 11.9151, 29.7744.5.6284, 11.9151, 18.3760The Color 5.6284, 11.9151, 18.3760.6.4442, 11.9151, 4.0964The Color 6.4442, 11.9151, 4.0964.19.9584, 11.9151, 8.7496The Color 19.9584, 11.9151, 8.7496.18.2004, 11.9151, 29.7744The Color 18.2004, 11.9151, 29.7744.Rectangle

Sweetspot

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

SweetspotThe sweet spot groups the original color and five complimentary colors.18.2008, 11.9156, 29.7747The Color 18.2008, 11.9156, 29.7747.11.3376, 11.9280, 12.9896The Color 11.3376, 11.9280, 12.9896.71.1368, 74.8414, 81.5023The Color 71.1368, 74.8414, 81.5023.9.5900, 8.7912, 12.4763The Color 9.5900, 8.7912, 12.4763.10.7238, 9.1243, 29.6300The Color 10.7238, 9.1243, 29.6300.43.9917, 40.9440, 56.5056The Color 43.9917, 40.9440, 56.5056.18.2008, 11.9156, 29.7747The Color 18.2008, 11.9156, 29.7747.Sweetspot

SVG Images

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

#8B4595

Previews

White Background

This preview shows how the XYZ color 18.2004, 11.9151, 29.7744 looks on a white background. The color contrast ratio for these colors is 6.21, 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 XYZ color 18.2004, 11.9151, 29.7744 looks on a black background. The color contrast ratio for these colors is 3.38, which passes the AA level for large text above 18pt. Details can be found at https://www.w3.org/TR/WCAG20/.

XYZ 18.2004, 11.9151, 29.7744 Background

This preview shows how black text looks on a background with the XYZ color 18.2004, 11.9151, 29.7744.

This preview shows how white text looks on a background with the XYZ color 18.2004, 11.9151, 29.7744.


CSS Examples


The CSS property to change the color of the text to XYZ 18.2004, 11.9151, 29.7744 is called "color". The color property can be set on classes, ids or directly on the HTML element .text, #text, p{ color:rgb(139, 69, 149) }.

This example shows how text in the color rgb(139, 69, 149) looks like.

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

Here you see how black text with a 4 pixel rgb(139, 69, 149) 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 XYZ 18.2004, 11.9151, 29.7744 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(139, 69, 149) }.

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

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

Background

The CSS property to change the background color of an element to XYZ 18.2004, 11.9151, 29.7744 is called "background". The background property can be set on classes, ids or directly on the HTML element .background, #background, body{ background:rgb(139, 69, 149) }.

If only the background color should be changed .background{ background-color:rgb(139, 69, 149) } 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, "8B4595", 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 "293°, 54%, 58%" 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(293°, 54%, 58%)" will give you the correct HSV color as there is no need to guess the format. Other examples would be "CIELAB(41.08, 42.16, -31.40)", "CIELCH(41, 52.564, 323.319)", "YXY(11.9151, 0.3039, 0.1990)" and "CMYK(0.07, 0.54, 0.00, 0.42)".