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
Hex12231D
RGB18, 35, 29
RGB Percent7%, 14%, 11%
CMY0.9294, 0.8627, 0.8863
CMYK0.49, 0.00, 0.17, 0.86
HSL159°, 32%, 10%
HSV159°, 49%, 14%
XYZ1.0723, 1.4194, 1.3798
Conversions Part 2
FormatColor
RYB18, 28, 35
Decimal1188637
CIELab12.09, -8.92, 1.80
CIELCh12, 9.100, 168.621
Yxy1.4194, 0.2770, 0.3666
Android (android.graphics.Color)4279378717 (0xFF12231D)
YUV29.2330, -0.1149, -9.8513

Details

The YUV color 29.2330, -0.1149, -9.8513 is a dark color, and the websafe version is hex 003333. A complement of this color would be 23.7670, 0.1149, 9.8513, and the grayscale version is 29.0000, 0.0000, 0.0000.

A 20% lighter version of the original color is 72.8200, -0.4043, -10.3661, and 0.0000, 0.0000, 0.0000 is the 20% darker color. If you saturate the color by 10%, you get 28.2220, -0.1094, -11.5957, and if you desaturate by 10%, it is 30.2440, -0.1203, -8.1070.

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 29.2330, -0.1149, -9.8513 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 29.2330, -0.1149, -9.8513 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%.29.2330, -0.1149, -9.8513The Color 29.2330, -0.1149, -9.8513.251.7110, 1.6215, -6.7625The Color 251.7110, 1.6215, -6.7625.229.5100, -0.2514, -12.7253The Color 229.5100, -0.2514, -12.7253.201.3960, -0.6882, -12.6253The Color 201.3960, -0.6882, -12.6253.174.3960, -0.6882, -12.6253The Color 174.3960, -0.6882, -12.6253.147.8090, -0.3988, -12.1105The Color 147.8090, -0.3988, -12.1105.122.1080, -0.5462, -11.4957The Color 122.1080, -0.5462, -11.4957.97.1080, -0.5462, -11.4957The Color 97.1080, -0.5462, -11.4957.72.8200, -0.4043, -10.3661The Color 72.8200, -0.4043, -10.3661.50.8200, -0.4043, -10.3661The Color 50.8200, -0.4043, -10.3661.29.2330, -0.1149, -9.8513The Color 29.2330, -0.1149, -9.8513.Brightness Gradient

🖌️ View as Color Bucket

Brightness Gradient[Translation for "HARMONY_BRIGHTNESS_1_TEXT" not found]29.2330, -0.1149, -9.8513The Color 29.2330, -0.1149, -9.8513.0.0000, 0.0000, 0.0000The Color 0.0000, 0.0000, 0.0000.8.5600, -2.7411, -7.5071The Color 8.5600, -2.7411, -7.5071.29.2330, -0.1149, -9.8513The Color 29.2330, -0.1149, -9.8513.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.29.2330, -0.1149, -9.8513The Color 29.2330, -0.1149, -9.8513.23.1670, -0.0823, -20.3175The Color 23.1670, -0.0823, -20.3175.24.4770, -0.2352, -17.9583The Color 24.4770, -0.2352, -17.9583.25.4880, -0.2406, -16.2140The Color 25.4880, -0.2406, -16.2140.26.9120, 0.0434, -13.9548The Color 26.9120, 0.0434, -13.9548.28.2220, -0.1094, -11.5957The Color 28.2220, -0.1094, -11.5957.29.2330, -0.1149, -9.8513The Color 29.2330, -0.1149, -9.8513.Saturation Gradient

🖌️ View as Color Bucket

Saturation Gradient[Translation for "HARMONY_SATURATION_1_TEXT" not found]29.2330, -0.1149, -9.8513The Color 29.2330, -0.1149, -9.8513.40.0550, -0.0271, 8.7218The Color 40.0550, -0.0271, 8.7218.38.7450, 0.1257, 6.3626The Color 38.7450, 0.1257, 6.3626.37.7340, 0.1311, 4.6183The Color 37.7340, 0.1311, 4.6183.36.3100, -0.1528, 2.3591The Color 36.3100, -0.1528, 2.3591.35.2990, -0.1474, 0.6148The Color 35.2990, -0.1474, 0.6148.33.9890, 0.0054, -1.7444The Color 33.9890, 0.0054, -1.7444.32.9780, 0.0108, -3.4887The Color 32.9780, 0.0108, -3.4887.31.5540, -0.2731, -5.7479The Color 31.5540, -0.2731, -5.7479.30.2440, -0.1203, -8.1070The Color 30.2440, -0.1203, -8.1070.29.2330, -0.1149, -9.8513The Color 29.2330, -0.1149, -9.8513.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.30.0550, -3.4781, -4.4332The Color 30.0550, -3.4781, -4.4332.28.4220, 3.2430, -13.5251The Color 28.4220, 3.2430, -13.5251.29.2330, -0.1149, -9.8513The Color 29.2330, -0.1149, -9.8513.30.0550, -3.4781, -4.4332The Color 30.0550, -3.4781, -4.4332.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.29.2330, -0.1149, -9.8513The Color 29.2330, -0.1149, -9.8513.31.9150, -4.3951, 9.7215The Color 31.9150, -4.3951, 9.7215.31.7700, 5.5364, -2.4293The Color 31.7700, 5.5364, -2.4293.29.2330, -0.1149, -9.8513The Color 29.2330, -0.1149, -9.8513.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.29.2330, -0.1149, -9.8513The Color 29.2330, -0.1149, -9.8513.23.7670, 0.1149, 9.8513The Color 23.7670, 0.1149, 9.8513.29.2330, -0.1149, -9.8513The Color 29.2330, -0.1149, -9.8513.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.32.1970, -2.0691, 10.3512The Color 32.1970, -2.0691, 10.3512.32.6460, 3.6255, 3.8185The Color 32.6460, 3.6255, 3.8185.29.2330, -0.1149, -9.8513The Color 29.2330, -0.1149, -9.8513.32.1970, -2.0691, 10.3512The Color 32.1970, -2.0691, 10.3512.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.29.2330, -0.1149, -9.8513The Color 29.2330, -0.1149, -9.8513.31.1380, -5.9840, 6.0180The Color 31.1380, -5.9840, 6.0180.32.5820, 0.6991, 9.1366The Color 32.5820, 0.6991, 9.1366.30.3670, 6.7211, -9.0919The Color 30.3670, 6.7211, -9.0919.29.2330, -0.1149, -9.8513The Color 29.2330, -0.1149, -9.8513.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.29.2330, -0.1149, -9.8513The Color 29.2330, -0.1149, -9.8513.32.3280, -4.1057, 10.2363The Color 32.3280, -4.1057, 10.2363.32.5820, 0.6991, 9.1366The Color 32.5820, 0.6991, 9.1366.28.8780, 4.9901, -13.9250The Color 28.8780, 4.9901, -13.9250.29.2330, -0.1149, -9.8513The Color 29.2330, -0.1149, -9.8513.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.29.2330, -0.1149, -9.8513The Color 29.2330, -0.1149, -9.8513.23.0000, 0.0000, 0.0000The Color 23.0000, 0.0000, 0.0000.150.0000, 0.0000, 0.0000The Color 150.0000, 0.0000, 0.0000.21.5760, -0.2840, -2.2592The Color 21.5760, -0.2840, -2.2592.29.7730, -5.8041, -5.0629The Color 29.7730, -5.8041, -5.0629.43.5650, -0.2785, -4.0035The Color 43.5650, -0.2785, -4.0035.29.2330, -0.1149, -9.8513The Color 29.2330, -0.1149, -9.8513.Sweetspot

🖌️ View as Color Bucket

SVG Images

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

#12231D

Previews

White Background

 

This preview shows how the YUV color 29.2330, -0.1149, -9.8513 looks on a white background.

The color contrast ratio for these colors is 16.36, 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 YUV color 29.2330, -0.1149, -9.8513 looks on a black background.

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

YUV 29.2330, -0.1149, -9.8513 Background

 

This preview shows how black text looks on a background with the YUV color 29.2330, -0.1149, -9.8513.

 

This preview shows how white text looks on a background with the YUV color 29.2330, -0.1149, -9.8513.

Color Blindness Simulation


Dichromacy

Original Color
29.2330, -0.1149, -9.8513
Protanopia
31.7290, -2.3314, 1.1147
Deuteranopia
32.0820, -1.0264, 2.5591
Tritanopia
30.1560, 3.3741, -8.9068

Trichromacy

Original Color
29.2330, -0.1149, -9.8513
Protanomaly
30.9350, -1.4470, -2.5740
Deuteranomaly
30.8750, -0.4314, -1.6444
Tritanomaly
29.5150, 2.2111, -9.2217

Monochromacy

Original Color
29.2330, -0.1149, -9.8513
Achromatopsia
29.0000, 0.0000, 0.0000
Achromatomaly
28.9780, 0.0108, -3.4887

CSS Examples


The CSS property to change the color of the text to YUV 29.2330, -0.1149, -9.8513 is called "color". The color property can be set on classes, ids or directly on the HTML element .text, #text, p{ color:rgb(18, 35, 29) }.

This example shows how text in the color rgb(18, 35, 29) looks like.

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

Here you see how black text with a 4 pixel rgb(18, 35, 29) 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 29.2330, -0.1149, -9.8513 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(18, 35, 29) }.

If only the border color should be changed .border{ border-color:rgb(18, 35, 29) } can be used.

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

Background

The CSS property to change the background color of an element to YUV 29.2330, -0.1149, -9.8513 is called "background". The background property can be set on classes, ids or directly on the HTML element .background, #background, body{ background:rgb(18, 35, 29) }.

If only the background color should be changed .background{ background-color:rgb(18, 35, 29) } 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, "12231D", 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 "159°, 49%, 14%" 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(159°, 49%, 14%)" will give you the correct HSV color as there is no need to guess the format. Other examples would be "CIELAB(12.09, -8.92, 1.80)", "CIELCH(12, 9.100, 168.621)", "YXY(1.4194, 0.2770, 0.3666)" and "CMYK(0.49, 0.00, 0.17, 0.86)".