Converting Colors

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

Conversions

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

FormatColor
HSL309°, 100%, 26%
CIELCh30, 63.562, 335.064
Yxy6.1788, 0.3617, 0.1766
Android (android.graphics.Color)4286906481 (0xFF850071)
YUV52.6490, 29.7530, 70.4678

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


Details

The XYZ color 12.6535, 6.1788, 16.1485 is a dark color, and the websafe version is hex 660066. A complement of this color would be 8.5141, 16.8258, 3.4614, and the grayscale version is 3.3042, 3.4763, 3.7857.

A 20% lighter version of the original color is 30.3441, 18.2985, 37.5300, and 4.1786, 2.0439, 5.1753 is the 20% darker color. If you saturate the color by 10%, you get 12.6535, 6.1788, 16.1480, and if you desaturate by 10%, it is 12.9154, 6.5203, 16.7976.

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 12.6535, 6.1788, 16.1485 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%.12.6535, 6.1788, 16.1485The Color 12.6535, 6.1788, 16.1485.202.3677, 160.6544, 242.0920The Color 202.3677, 160.6544, 242.0920.164.3508, 127.7263, 197.2205The Color 164.3508, 127.7263, 197.2205.131.4208, 99.6362, 158.2674The Color 131.4208, 99.6362, 158.2674.103.2123, 75.9996, 124.8139The Color 103.2123, 75.9996, 124.8139.79.3600, 56.4322, 96.4416The Color 79.3600, 56.4322, 96.4416.59.4985, 40.5495, 72.7319The Color 59.4985, 40.5495, 72.7319.43.2624, 27.9673, 53.2663The Color 43.2624, 27.9673, 53.2663.30.2865, 18.3010, 37.6262The Color 30.2865, 18.3010, 37.6262.20.2053, 11.1663, 25.3931The Color 20.2053, 11.1663, 25.3931.12.6535, 6.1788, 16.1485The Color 12.6535, 6.1788, 16.1485.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%.12.6535, 6.1788, 16.1485The Color 12.6535, 6.1788, 16.1485.0.0000, 0.0000, 0.0000The Color 0.0000, 0.0000, 0.0000.0.3400, 0.0000, 0.6511The Color 0.3400, 0.0000, 0.6511.1.5209, 0.0000, 2.1600The Color 1.5209, 0.0000, 2.1600.3.6766, 1.1078, 4.9505The Color 3.6766, 1.1078, 4.9505.7.2657, 2.9541, 9.4738The Color 7.2657, 2.9541, 9.4738.12.6535, 6.1788, 16.1485The Color 12.6535, 6.1788, 16.1485.Brightness Gradient

Saturation Gradient

Similar to the brightness gradients but the following show a change of the XYZ color 12.6535, 6.1788, 16.1485 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.12.6535, 6.1788, 16.1485The Color 12.6535, 6.1788, 16.1485.12.6535, 6.1788, 16.1480The Color 12.6535, 6.1788, 16.1480.12.6535, 6.1788, 16.1485The Color 12.6535, 6.1788, 16.1485.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.12.6535, 6.1788, 16.1485The Color 12.6535, 6.1788, 16.1485.20.4518, 19.9893, 24.2539The Color 20.4518, 19.9893, 24.2539.18.8322, 16.9650, 23.0516The Color 18.8322, 16.9650, 23.0516.17.4281, 14.3675, 21.9339The Color 17.4281, 14.3675, 21.9339.16.2297, 12.1772, 20.8976The Color 16.2297, 12.1772, 20.8976.15.2265, 10.3733, 19.9390The Color 15.2265, 10.3733, 19.9390.14.4070, 8.9327, 19.0544The Color 14.4070, 8.9327, 19.0544.13.7586, 7.8302, 18.2393The Color 13.7586, 7.8302, 18.2393.13.2670, 7.0372, 17.4889The Color 13.2670, 7.0372, 17.4889.12.9154, 6.5203, 16.7976The Color 12.9154, 6.5203, 16.7976.12.6535, 6.1788, 16.1485The Color 12.6535, 6.1788, 16.1485.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.9.7657, 6.1788, 30.6631The Color 9.7657, 6.1788, 30.6631.13.5165, 6.1788, 5.3946The Color 13.5165, 6.1788, 5.3946.12.6535, 6.1788, 16.1485The Color 12.6535, 6.1788, 16.1485.9.7657, 6.1788, 30.6631The Color 9.7657, 6.1788, 30.6631.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.12.6535, 6.1788, 16.1485The Color 12.6535, 6.1788, 16.1485.2.3491, 6.1788, 21.0165The Color 2.3491, 6.1788, 21.0165.5.3867, 6.1788, 0.0000The Color 5.3867, 6.1788, 0.0000.12.6535, 6.1788, 16.1485The Color 12.6535, 6.1788, 16.1485.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.12.6535, 6.1788, 16.1485The Color 12.6535, 6.1788, 16.1485.8.5141, 16.8258, 3.4614The Color 8.5141, 16.8258, 3.4614.12.6535, 6.1788, 16.1485The Color 12.6535, 6.1788, 16.1485.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.1.8441, 6.1788, 8.2640The Color 1.8441, 6.1788, 8.2640.3.1823, 6.1788, 0.0000The Color 3.1823, 6.1788, 0.0000.12.6535, 6.1788, 16.1485The Color 12.6535, 6.1788, 16.1485.1.8441, 6.1788, 8.2640The Color 1.8441, 6.1788, 8.2640.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.12.6535, 6.1788, 16.1485The Color 12.6535, 6.1788, 16.1485.3.7934, 6.1788, 34.7712The Color 3.7934, 6.1788, 34.7712.2.0879, 6.1788, 1.9436The Color 2.0879, 6.1788, 1.9436.8.5997, 6.1788, 0.0000The Color 8.5997, 6.1788, 0.0000.12.6535, 6.1788, 16.1485The Color 12.6535, 6.1788, 16.1485.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.12.6535, 6.1788, 16.1485The Color 12.6535, 6.1788, 16.1485.2.0906, 6.1788, 16.2078The Color 2.0906, 6.1788, 16.2078.2.0879, 6.1788, 1.9436The Color 2.0879, 6.1788, 1.9436.12.6445, 6.1788, 1.9293The Color 12.6445, 6.1788, 1.9293.12.6535, 6.1788, 16.1485The Color 12.6535, 6.1788, 16.1485.Rectangle

Sweetspot

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

SweetspotThe sweet spot groups the original color and five complimentary colors.12.6537, 6.1791, 16.1486The Color 12.6537, 6.1791, 16.1486.8.9945, 9.4630, 10.3052The Color 8.9945, 9.4630, 10.3052.64.0503, 67.3860, 73.3833The Color 64.0503, 67.3860, 73.3833.6.8152, 5.4001, 8.6670The Color 6.8152, 5.4001, 8.6670.4.5215, 1.8421, 22.3077The Color 4.5215, 1.8421, 22.3077.31.0500, 25.4349, 39.1460The Color 31.0500, 25.4349, 39.1460.12.6537, 6.1791, 16.1486The Color 12.6537, 6.1791, 16.1486.Sweetspot

SVG Images

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

#850071

Previews

White Background

This preview shows how the XYZ color 12.6535, 6.1788, 16.1485 looks on a white background.

The color contrast ratio for these colors is 9.39, 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 XYZ color 12.6535, 6.1788, 16.1485 looks on a black background.

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

XYZ 12.6535, 6.1788, 16.1485 Background

This preview shows how black text looks on a background with the XYZ color 12.6535, 6.1788, 16.1485.

This preview shows how white text looks on a background with the XYZ color 12.6535, 6.1788, 16.1485.


CSS Examples


The CSS property to change the color of the text to XYZ 12.6535, 6.1788, 16.1485 is called "color". The color property can be set on classes, ids or directly on the HTML element .text, #text, p{ color:rgb(133, 0, 113) }.

This example shows how text in the color rgb(133, 0, 113) looks like.

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

Here you see how black text with a 4 pixel rgb(133, 0, 113) 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 12.6535, 6.1788, 16.1485 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(133, 0, 113) }.

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

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

Background

The CSS property to change the background color of an element to XYZ 12.6535, 6.1788, 16.1485 is called "background". The background property can be set on classes, ids or directly on the HTML element .background, #background, body{ background:rgb(133, 0, 113) }.

If only the background color should be changed .background{ background-color:rgb(133, 0, 113) } 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, "850071", 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 "309°, 100%, 52%" 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(309°, 100%, 52%)" will give you the correct HSV color as there is no need to guess the format. Other examples would be "CIELAB(29.86, 57.64, -26.80)", "CIELCH(30, 63.562, 335.064)", "YXY(6.1788, 0.3617, 0.1766)" and "CMYK(0.00, 1.00, 0.15, 0.48)".