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 2
FormatColor
RYB158, 90, 158
Decimal10377886
CIELab48.32, 38.46, -25.29
CIELCh48, 46.027, 326.678
Yxy17.0501, 0.3175, 0.2263
Android (android.graphics.Color)4288567966 (0xFF9E5A9E)
YUV118.0840, 19.6786, 35.0063

Details

The YUV color 118.0840, 19.6786, 35.0063 is a dark color, and the websafe version is hex 996699. A complement of this color would be 129.9160, -19.6786, -35.0063, and the grayscale version is 118.0000, 0.0000, 0.0000.

A 20% lighter version of the original color is 171.6220, 20.3994, 37.1655, and 66.9590, 19.2472, 33.3620 is the 20% darker color. If you saturate the color by 10%, you get 108.6920, 24.3088, 43.2431, and if you desaturate by 10%, it is 127.4760, 15.0483, 26.7695.

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 YUV color 118.0840, 19.6786, 35.0063 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 YUV color 118.0840, 19.6786, 35.0063 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%.118.0840, 19.6786, 35.0063The Color 118.0840, 19.6786, 35.0063.255.0000, 0.0000, 0.0000The Color 255.0000, 0.0000, 0.0000.254.4130, 0.2894, 0.5148The Color 254.4130, 0.2894, 0.5148.237.3900, 8.6817, 15.4440The Color 237.3900, 8.6817, 15.4440.220.9540, 16.7847, 29.8583The Color 220.9540, 16.7847, 29.8583.199.3340, 20.5413, 38.2951The Color 199.3340, 20.5413, 38.2951.171.6220, 20.3994, 37.1655The Color 171.6220, 20.3994, 37.1655.144.7960, 19.8206, 36.1359The Color 144.7960, 19.8206, 36.1359.118.0840, 19.6786, 35.0063The Color 118.0840, 19.6786, 35.0063.Brightness Gradient

🖌️ View as Color Bucket

Brightness Gradient[Translation for "HARMONY_BRIGHTNESS_1_TEXT" not found]118.0840, 19.6786, 35.0063The Color 118.0840, 19.6786, 35.0063.0.0000, 0.0000, 0.0000The Color 0.0000, 0.0000, 0.0000.1.3680, 5.2416, -1.1997The Color 1.3680, 5.2416, -1.1997.14.3840, 11.1497, 17.2032The Color 14.3840, 11.1497, 17.2032.23.1710, 17.6637, 27.9140The Color 23.1710, 17.6637, 27.9140.41.1870, 20.1208, 33.1620The Color 41.1870, 20.1208, 33.1620.66.9590, 19.2472, 33.3620The Color 66.9590, 19.2472, 33.3620.92.3720, 19.5366, 33.8768The Color 92.3720, 19.5366, 33.8768.118.0840, 19.6786, 35.0063The Color 118.0840, 19.6786, 35.0063.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.118.0840, 19.6786, 35.0063The Color 118.0840, 19.6786, 35.0063.65.2540, 45.7238, 81.3382The Color 65.2540, 45.7238, 81.3382.71.7110, 42.5405, 75.6755The Color 71.7110, 42.5405, 75.6755.81.1030, 37.9102, 67.4387The Color 81.1030, 37.9102, 67.4387.90.4950, 33.2800, 59.2019The Color 90.4950, 33.2800, 59.2019.99.3000, 28.9391, 51.4799The Color 99.3000, 28.9391, 51.4799.108.6920, 24.3088, 43.2431The Color 108.6920, 24.3088, 43.2431.118.0840, 19.6786, 35.0063The Color 118.0840, 19.6786, 35.0063.Saturation Gradient

🖌️ View as Color Bucket

Saturation Gradient[Translation for "HARMONY_SATURATION_1_TEXT" not found]118.0840, 19.6786, 35.0063The Color 118.0840, 19.6786, 35.0063.201.4380, -21.4149, -38.0951The Color 201.4380, -21.4149, -38.0951.192.0460, -16.7847, -29.8583The Color 192.0460, -16.7847, -29.8583.183.2410, -12.4438, -22.1364The Color 183.2410, -12.4438, -22.1364.173.8490, -7.8136, -13.8996The Color 173.8490, -7.8136, -13.8996.164.4570, -3.1833, -5.6628The Color 164.4570, -3.1833, -5.6628.155.0650, 1.4470, 2.5740The Color 155.0650, 1.4470, 2.5740.145.6730, 6.0772, 10.8108The Color 145.6730, 6.0772, 10.8108.136.8680, 10.4181, 18.5328The Color 136.8680, 10.4181, 18.5328.127.4760, 15.0483, 26.7695The Color 127.4760, 15.0483, 26.7695.118.0840, 19.6786, 35.0063The Color 118.0840, 19.6786, 35.0063.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.115.4900, 33.7754, -6.5687The Color 115.4900, 33.7754, -6.5687.115.1720, 2.8732, 58.6082The Color 115.1720, 2.8732, 58.6082.118.0840, 19.6786, 35.0063The Color 118.0840, 19.6786, 35.0063.115.4900, 33.7754, -6.5687The Color 115.4900, 33.7754, -6.5687.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.118.0840, 19.6786, 35.0063The Color 118.0840, 19.6786, 35.0063.95.0570, 26.5939, -83.3650The Color 95.0570, 26.5939, -83.3650.110.2520, -39.0712, 25.2120The Color 110.2520, -39.0712, 25.2120.118.0840, 19.6786, 35.0063The Color 118.0840, 19.6786, 35.0063.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.118.0840, 19.6786, 35.0063The Color 118.0840, 19.6786, 35.0063.129.9160, -19.6786, -35.0063The Color 129.9160, -19.6786, -35.0063.118.0840, 19.6786, 35.0063The Color 118.0840, 19.6786, 35.0063.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.90.4970, 9.1220, -79.3659The Color 90.4970, 9.1220, -79.3659.106.9600, -33.0113, -5.2269The Color 106.9600, -33.0113, -5.2269.118.0840, 19.6786, 35.0063The Color 118.0840, 19.6786, 35.0063.90.4970, 9.1220, -79.3659The Color 90.4970, 9.1220, -79.3659.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.118.0840, 19.6786, 35.0063The Color 118.0840, 19.6786, 35.0063.96.1290, 40.8554, -84.3051The Color 96.1290, 40.8554, -84.3051.98.9410, -14.2679, -43.7983The Color 98.9410, -14.2679, -43.7983.112.5830, -30.8534, 49.4777The Color 112.5830, -30.8534, 49.4777.118.0840, 19.6786, 35.0063The Color 118.0840, 19.6786, 35.0063.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.118.0840, 19.6786, 35.0063The Color 118.0840, 19.6786, 35.0063.94.1620, 20.6261, -82.5801The Color 94.1620, 20.6261, -82.5801.98.9410, -14.2679, -43.7983The Color 98.9410, -14.2679, -43.7983.113.4040, -9.0732, 63.6667The Color 113.4040, -9.0732, 63.6667.118.0840, 19.6786, 35.0063The Color 118.0840, 19.6786, 35.0063.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.118.0840, 19.6786, 35.0063The Color 118.0840, 19.6786, 35.0063.105.0000, 0.0000, 0.0000The Color 105.0000, 0.0000, 0.0000.232.0000, 0.0000, 0.0000The Color 232.0000, 0.0000, 0.0000.95.0210, 4.9196, 8.7516The Color 95.0210, 4.9196, 8.7516.97.7520, 29.7023, -6.7985The Color 97.7520, 29.7023, -6.7985.191.1510, 7.8136, 13.8996The Color 191.1510, 7.8136, 13.8996.118.0840, 19.6786, 35.0063The Color 118.0840, 19.6786, 35.0063.Sweetspot

🖌️ View as Color Bucket

SVG Images

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

#9E5A9E

Previews

White Background

 

This preview shows how the YUV color 118.0840, 19.6786, 35.0063 looks on a white background.

The color contrast ratio for these colors is 4.76, 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 YUV color 118.0840, 19.6786, 35.0063 looks on a black background.

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

YUV 118.0840, 19.6786, 35.0063 Background

 

This preview shows how black text looks on a background with the YUV color 118.0840, 19.6786, 35.0063.

 

This preview shows how white text looks on a background with the YUV color 118.0840, 19.6786, 35.0063.

Color Blindness Simulation


Dichromacy

Original Color
118.0840, 19.6786, 35.0063
Protanopia
114.0170, 31.0506, -19.3089
Deuteranopia
115.2820, 19.0880, -9.0173
Tritanopia
117.1610, -4.0234, 30.5538

Trichromacy

Original Color
118.0840, 19.6786, 35.0063
Protanomaly
115.6990, 26.7704, 0.2640
Deuteranomaly
116.3810, 19.0392, 6.6819
Tritanomaly
117.4630, 4.7017, 32.0429

Monochromacy

Original Color
118.0840, 19.6786, 35.0063
Achromatopsia
118.0000, 0.0000, 0.0000
Achromatomaly
118.3250, 7.2348, 12.8700

CSS Examples


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

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

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

Here you see how black text with a 4 pixel rgb(158, 90, 158) 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 YUV 118.0840, 19.6786, 35.0063 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(158, 90, 158) }.

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

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

Background

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

If only the background color should be changed .background{ background-color:rgb(158, 90, 158) } 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, "9E5A9E", 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 "300°, 43%, 62%" 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(300°, 43%, 62%)" will give you the correct HSV color as there is no need to guess the format. Other examples would be "CIELAB(48.32, 38.46, -25.29)", "CIELCH(48, 46.027, 326.678)", "YXY(17.0501, 0.3175, 0.2263)" and "CMYK(0.00, 0.43, 0.00, 0.38)".


    FontExplorer X - Makes Everyone an Expert

Advertisment: These links are affiliate (commission) links. If you click on such a link and buy something on that website, I get a commission. For you, the price does not change.