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 1
FormatColor
Hex312A31
RGB49, 42, 49
RGB Percent19%, 16%, 19%
CMY0.8094, 0.8353, 0.8089
CMYK0.00, 0.14, 0.00, 0.81
HSL299°, 7%, 18%
HSV299°, 14%, 19%
XYZ2.6241, 2.5180, 3.2231
Conversions Part 2
FormatColor
RYB49, 42, 49
Decimal3222065
CIELab18.00, 4.57, -3.25
CIELCh18, 5.604, 324.582
Yxy2.5180, 0.3137, 0.3010
Android (android.graphics.Color)4281412145 (0xFF312A31)
YUV44.8910, 2.0257, 3.6036

Details

The CIELCh color 18, 5.604, 324.582 is a dark color, and the websafe version is hex 333333. A complement of this color would be 19, 5.594, 143.335, and the grayscale version is 18, 0.003, 296.813.

A 20% lighter version of the original color is 38, 5.981, 324.845, and 0, 0.000, 0.000 is the 20% darker color. If you saturate the color by 10%, you get 16, 9.688, 325.032, and if you desaturate by 10%, it is 20, 1.541, 324.094.

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 CIELCh color 18, 5.604, 324.582 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 CIELCh color 18, 5.604, 324.582 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%.18, 5.604, 324.582The Color 18, 5.604, 324.582.100, 5.604, 324.582The Color 100, 5.604, 324.582.98, 5.604, 324.582The Color 98, 5.604, 324.582.88, 5.604, 324.582The Color 88, 5.604, 324.582.78, 5.604, 324.582The Color 78, 5.604, 324.582.68, 5.604, 324.582The Color 68, 5.604, 324.582.58, 5.604, 324.582The Color 58, 5.604, 324.582.48, 5.604, 324.582The Color 48, 5.604, 324.582.38, 5.604, 324.582The Color 38, 5.604, 324.582.28, 5.604, 324.582The Color 28, 5.604, 324.582.18, 5.604, 324.582The Color 18, 5.604, 324.582.Brightness Gradient

🖌️ View as Color Bucket

Brightness Gradient[Translation for "HARMONY_BRIGHTNESS_1_TEXT" not found]18, 5.604, 324.582The Color 18, 5.604, 324.582.0, 5.604, 324.582The Color 0, 5.604, 324.582.8, 5.604, 324.582The Color 8, 5.604, 324.582.18, 5.604, 324.582The Color 18, 5.604, 324.582.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.18, 5.604, 324.582The Color 18, 5.604, 324.582.8, 36.061, 327.659The Color 8, 36.061, 327.659.8, 34.102, 327.482The Color 8, 34.102, 327.482.9, 31.143, 327.209The Color 9, 31.143, 327.209.10, 28.332, 326.949The Color 10, 28.332, 326.949.11, 25.124, 326.641The Color 11, 25.124, 326.641.12, 21.555, 326.284The Color 12, 21.555, 326.284.14, 17.733, 325.890The Color 14, 17.733, 325.890.15, 13.751, 325.470The Color 15, 13.751, 325.470.16, 9.688, 325.032The Color 16, 9.688, 325.032.18, 5.604, 324.582The Color 18, 5.604, 324.582.Saturation Gradient

🖌️ View as Color Bucket

Saturation Gradient[Translation for "HARMONY_SATURATION_1_TEXT" not found]18, 5.604, 324.582The Color 18, 5.604, 324.582.33, 28.016, 141.069The Color 33, 28.016, 141.069.31, 24.654, 141.393The Color 31, 24.654, 141.393.30, 21.198, 141.737The Color 30, 21.198, 141.737.28, 17.646, 142.100The Color 28, 17.646, 142.100.26, 13.994, 142.483The Color 26, 13.994, 142.483.25, 10.245, 142.884The Color 25, 10.245, 142.884.23, 6.400, 143.304The Color 23, 6.400, 143.304.21, 2.467, 143.756The Color 21, 2.467, 143.756.20, 1.541, 324.094The Color 20, 1.541, 324.094.18, 5.604, 324.582The Color 18, 5.604, 324.582.Saturation Gradient

🖌️ View as Color Bucket

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.18, 5.604, 324.582The Color 18, 5.604, 324.582.19, 5.594, 143.335The Color 19, 5.594, 143.335.18, 5.604, 324.582The Color 18, 5.604, 324.582.Complementary

🖌️ 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.18, 5.604, 324.582The Color 18, 5.604, 324.582.18, 5.604, 194.582The Color 18, 5.604, 194.582.18, 5.604, 144.582The Color 18, 5.604, 144.582.18, 5.604, 14.582The Color 18, 5.604, 14.582.18, 5.604, 324.582The Color 18, 5.604, 324.582.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.18, 5.603, 324.582The Color 18, 5.603, 324.582.13, 0.003, 296.813The Color 13, 0.003, 296.813.66, 0.008, 296.813The Color 66, 0.008, 296.813.12, 1.454, 324.135The Color 12, 1.454, 324.135.17, 4.519, 290.050The Color 17, 4.519, 290.050.26, 2.024, 324.118The Color 26, 2.024, 324.118.18, 5.603, 324.582The Color 18, 5.603, 324.582.Sweetspot

🖌️ View as Color Bucket

SVG Images

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

#312A31

Previews

White Background

 

This preview shows how the CIELCh color 18, 5.604, 324.582 looks on a white background.

The color contrast ratio for these colors is 13.94, 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 18, 5.604, 324.582 looks on a black background.

The color contrast ratio for these colors is 1.51, 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 18, 5.604, 324.582 Background

 

This preview shows how black text looks on a background with the CIELCh color 18, 5.604, 324.582.

 

This preview shows how white text looks on a background with the CIELCh color 18, 5.604, 324.582.

Color Blindness Simulation


Dichromacy

Original Color
18, 5.852, 325.073
Protanopia
18, 4.158, 284.998
Deuteranopia
18, 4.391, 309.514
Tritanopia
18, 3.980, 336.362

Trichromacy

Original Color
18, 5.852, 325.073
Protanomaly
18, 4.942, 301.981
Deuteranomaly
18, 4.560, 315.077
Tritanomaly
18, 4.481, 329.990

Monochromacy

Original Color
18, 5.852, 325.073
Achromatopsia
18, 0.003, 296.813
Achromatomaly
18, 1.681, 324.581

CSS Examples


The CSS property to change the color of the text to CIELCh 18, 5.604, 324.582 is called "color". The color property can be set on classes, ids or directly on the HTML element .text, #text, p{ color:rgb(49, 42, 49) }.

This example shows how text in the color rgb(49, 42, 49) looks like.

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

Here you see how black text with a 4 pixel rgb(49, 42, 49) 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 18, 5.604, 324.582 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(49, 42, 49) }.

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

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

Background

The CSS property to change the background color of an element to CIELCh 18, 5.604, 324.582 is called "background". The background property can be set on classes, ids or directly on the HTML element .background, #background, body{ background:rgb(49, 42, 49) }.

If only the background color should be changed .background{ background-color:rgb(49, 42, 49) } 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, "312A31", 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 "299°, 14%, 19%" 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(299°, 14%, 19%)" will give you the correct HSV color as there is no need to guess the format. Other examples would be "CIELAB(18.00, 4.57, -3.25)", "CIELCH(18, 5.604, 324.582)", "YXY(2.5180, 0.3137, 0.3010)" and "CMYK(0.00, 0.14, 0.00, 0.81)".