Converting Colors

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

Conversions

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

FormatColor
HSL311°, 100%, 36%
CIELCh42, 78.909, 336.829
Yxy12.5000, 0.3717, 0.1821
Android (android.graphics.Color)4290248856 (0xFFB80098)
YUV72.3440, 39.2704, 97.9223

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


Details

The CIELCh color 42, 78.909, 336.829 is a dark color, and the websafe version is hex CC0099. A complement of this color would be 65, 89.268, 138.117, and the grayscale version is 31, 0.005, 296.813.

A 20% lighter version of the original color is 62, 79.024, 336.552, and 28, 58.704, 338.143 is the 20% darker color. If you saturate the color by 10%, you get 42, 78.896, 336.830, and if you desaturate by 10%, it is 43, 77.711, 335.931.

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 42, 78.909, 336.829 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%.42, 78.909, 336.829The Color 42, 78.909, 336.829.100, 78.909, 336.829The Color 100, 78.909, 336.829.92, 78.909, 336.829The Color 92, 78.909, 336.829.82, 78.909, 336.829The Color 82, 78.909, 336.829.72, 78.909, 336.829The Color 72, 78.909, 336.829.62, 78.909, 336.829The Color 62, 78.909, 336.829.52, 78.909, 336.829The Color 52, 78.909, 336.829.42, 78.909, 336.829The Color 42, 78.909, 336.829.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%.42, 78.909, 336.829The Color 42, 78.909, 336.829.0, 78.909, 336.829The Color 0, 78.909, 336.829.2, 78.909, 336.829The Color 2, 78.909, 336.829.12, 78.909, 336.829The Color 12, 78.909, 336.829.22, 78.909, 336.829The Color 22, 78.909, 336.829.32, 78.909, 336.829The Color 32, 78.909, 336.829.42, 78.909, 336.829The Color 42, 78.909, 336.829.Brightness Gradient

Saturation Gradient

Similar to the brightness gradients but the following show a change of the CIELCh color 42, 78.909, 336.829 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.42, 78.909, 336.829The Color 42, 78.909, 336.829.42, 78.896, 336.830The Color 42, 78.896, 336.830.42, 78.909, 336.829The Color 42, 78.909, 336.829.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.42, 78.909, 336.829The Color 42, 78.909, 336.829.70, 10.830, 330.341The Color 70, 10.830, 330.341.65, 21.759, 330.978The Color 65, 21.759, 330.978.61, 32.629, 331.624The Color 61, 32.629, 331.624.57, 43.196, 332.284The Color 57, 43.196, 332.284.53, 53.122, 332.957The Color 53, 53.122, 332.957.49, 61.980, 333.646The Color 49, 61.980, 333.646.46, 69.295, 334.359The Color 46, 69.295, 334.359.44, 74.629, 335.112The Color 44, 74.629, 335.112.43, 77.711, 335.931The Color 43, 77.711, 335.931.42, 78.909, 336.829The Color 42, 78.909, 336.829.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.42, 78.909, 336.829The Color 42, 78.909, 336.829.65, 89.268, 138.117The Color 65, 89.268, 138.117.42, 78.909, 336.829The Color 42, 78.909, 336.829.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.42, 78.909, 336.829The Color 42, 78.909, 336.829.42, 78.909, 206.829The Color 42, 78.909, 206.829.42, 78.909, 156.829The Color 42, 78.909, 156.829.42, 78.909, 26.829The Color 42, 78.909, 26.829.42, 78.909, 336.829The Color 42, 78.909, 336.829.Rectangle

Sweetspot

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

SweetspotThe sweet spot groups the original color and five complimentary colors.42, 78.896, 336.830The Color 42, 78.896, 336.830.50, 0.007, 296.813The Color 50, 0.007, 296.813.97, 0.011, 296.813The Color 97, 0.011, 296.813.39, 27.461, 331.932The Color 39, 27.461, 331.932.23, 103.737, 307.001The Color 23, 103.737, 307.001.77, 40.363, 331.657The Color 77, 40.363, 331.657.42, 78.896, 336.830The Color 42, 78.896, 336.830.Sweetspot

SVG Images

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

#B80098

Previews

White Background

This preview shows how the CIELCh color 42, 78.909, 336.829 looks on a white background.

The color contrast ratio for these colors is 6.01, 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 CIELCh color 42, 78.909, 336.829 looks on a black background.

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

CIELCh 42, 78.909, 336.829 Background

This preview shows how black text looks on a background with the CIELCh color 42, 78.909, 336.829.

This preview shows how white text looks on a background with the CIELCh color 42, 78.909, 336.829.


CSS Examples


The CSS property to change the color of the text to CIELCh 42, 78.909, 336.829 is called "color". The color property can be set on classes, ids or directly on the HTML element .text, #text, p{ color:rgb(184, 0, 152) }.

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

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

Here you see how black text with a 4 pixel rgb(184, 0, 152) 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 42, 78.909, 336.829 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(184, 0, 152) }.

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

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

Background

The CSS property to change the background color of an element to CIELCh 42, 78.909, 336.829 is called "background". The background property can be set on classes, ids or directly on the HTML element .background, #background, body{ background:rgb(184, 0, 152) }.

If only the background color should be changed .background{ background-color:rgb(184, 0, 152) } 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, "B80098", 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 "311°, 100%, 72%" 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(311°, 100%, 72%)" will give you the correct HSV color as there is no need to guess the format. Other examples would be "CIELAB(42.00, 72.54, -31.05)", "CIELCH(42, 78.909, 336.829)", "YXY(12.5000, 0.3717, 0.1821)" and "CMYK(0.00, 1.00, 0.18, 0.28)".