Converting Colors

Advertisment

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
Hex155354
RGB21, 83, 84
RGB Percent8%, 33%, 33%
CMY0.9183, 0.6735, 0.6711
CMYK0.75, 0.01, 0.00, 0.67
HSL181°, 60%, 21%
HSV181°, 75%, 33%
XYZ5.0139, 7.0217, 9.4518
Conversions Part 2
FormatColor
RYB21, 52, 84
Decimal1397588
CIELab31.86, -18.76, -6.04
CIELCh32, 19.706, 197.862
Yxy7.0217, 0.2333, 0.3268
Android (android.graphics.Color)4279587668 (0xFF155354)
YUV64.5760, 9.5760, -38.2162

Details

The XYZ color 5.0139, 7.0217, 9.4518 is a dark color, and the websafe version is hex 336666. A complement of this color would be 4.0549, 2.4854, 0.9676, and the grayscale version is 4.9636, 5.2221, 5.6869.

A 20% lighter version of the original color is 15.6017, 20.0050, 25.2294, and 1.0593, 1.5327, 2.1595 is the 20% darker color. If you saturate the color by 10%, you get 4.8600, 6.9333, 9.4430, and if you desaturate by 10%, it is 5.2276, 7.1413, 9.4637.

Advertisment

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 XYZ color 5.0139, 7.0217, 9.4518 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 XYZ color 5.0139, 7.0217, 9.4518 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%.5.0139, 7.0217, 9.4518The Color 5.0139, 7.0217, 9.4518.144.8955, 167.8439, 197.0539The Color 144.8955, 167.8439, 197.0539.114.7138, 133.9035, 158.1235The Color 114.7138, 133.9035, 158.1235.89.0445, 104.8779, 124.6911The Color 89.0445, 104.8779, 124.6911.67.5221, 80.3826, 96.3382The Color 67.5221, 80.3826, 96.3382.49.7813, 60.0333, 72.6462The Color 49.7813, 60.0333, 72.6462.35.4567, 43.4454, 53.1967The Color 35.4567, 43.4454, 53.1967.24.1831, 30.2348, 37.5710The Color 24.1831, 30.2348, 37.5710.15.5949, 20.0169, 25.3506The Color 15.5949, 20.0169, 25.3506.9.3270, 12.4073, 16.1171The Color 9.3270, 12.4073, 16.1171.5.0139, 7.0217, 9.4518The Color 5.0139, 7.0217, 9.4518.Brightness Gradient

🖌️ View as Color Bucket

Brightness Gradient[Translation for "HARMONY_BRIGHTNESS_1_TEXT" not found]5.0139, 7.0217, 9.4518The Color 5.0139, 7.0217, 9.4518.0.0000, 0.0000, 0.0000The Color 0.0000, 0.0000, 0.0000.0.0000, 0.2055, 0.6463The Color 0.0000, 0.2055, 0.6463.0.7897, 1.3848, 2.1518The Color 0.7897, 1.3848, 2.1518.2.2903, 3.4757, 4.9362The Color 2.2903, 3.4757, 4.9362.5.0139, 7.0217, 9.4518The Color 5.0139, 7.0217, 9.4518.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.5.0139, 7.0217, 9.4518The Color 5.0139, 7.0217, 9.4518.4.6928, 6.8333, 9.4325The Color 4.6928, 6.8333, 9.4325.4.7467, 6.8656, 9.4359The Color 4.7467, 6.8656, 9.4359.4.8600, 6.9333, 9.4430The Color 4.8600, 6.9333, 9.4430.5.0139, 7.0217, 9.4518The Color 5.0139, 7.0217, 9.4518.Saturation Gradient

🖌️ View as Color Bucket

Saturation Gradient[Translation for "HARMONY_SATURATION_1_TEXT" not found]5.0139, 7.0217, 9.4518The Color 5.0139, 7.0217, 9.4518.9.6225, 9.4816, 9.6838The Color 9.6225, 9.4816, 9.6838.8.7768, 9.0362, 9.6424The Color 8.7768, 9.0362, 9.6424.8.0223, 8.6379, 9.6053The Color 8.0223, 8.6379, 9.6053.7.3562, 8.2852, 9.5723The Color 7.3562, 8.2852, 9.5723.6.7750, 7.9762, 9.5434The Color 6.7750, 7.9762, 9.5434.6.2754, 7.7094, 9.5182The Color 6.2754, 7.7094, 9.5182.5.8537, 7.4827, 9.4966The Color 5.8537, 7.4827, 9.4966.5.5059, 7.2940, 9.4786The Color 5.5059, 7.2940, 9.4786.5.2276, 7.1413, 9.4637The Color 5.2276, 7.1413, 9.4637.5.0139, 7.0217, 9.4518The Color 5.0139, 7.0217, 9.4518.Saturation Gradient

🖌️ View as Color Bucket

Advertisment

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.4.9731, 7.0217, 6.5505The Color 4.9731, 7.0217, 6.5505.5.4711, 7.0217, 12.4694The Color 5.4711, 7.0217, 12.4694.5.0139, 7.0217, 9.4518The Color 5.0139, 7.0217, 9.4518.4.9731, 7.0217, 6.5505The Color 4.9731, 7.0217, 6.5505.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.5.0139, 7.0217, 9.4518The Color 5.0139, 7.0217, 9.4518.7.0842, 7.0217, 3.4431The Color 7.0842, 7.0217, 3.4431.8.1951, 7.0217, 11.9410The Color 8.1951, 7.0217, 11.9410.5.0139, 7.0217, 9.4518The Color 5.0139, 7.0217, 9.4518.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.5.0139, 7.0217, 9.4518The Color 5.0139, 7.0217, 9.4518.4.0549, 2.4854, 0.9676The Color 4.0549, 2.4854, 0.9676.5.0139, 7.0217, 9.4518The Color 5.0139, 7.0217, 9.4518.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.8.0412, 7.0217, 4.2603The Color 8.0412, 7.0217, 4.2603.8.7240, 7.0217, 8.8560The Color 8.7240, 7.0217, 8.8560.5.0139, 7.0217, 9.4518The Color 5.0139, 7.0217, 9.4518.8.0412, 7.0217, 4.2603The Color 8.0412, 7.0217, 4.2603.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.5.0139, 7.0217, 9.4518The Color 5.0139, 7.0217, 9.4518.6.1042, 7.0217, 3.5270The Color 6.1042, 7.0217, 3.5270.8.6650, 7.0217, 6.0853The Color 8.6650, 7.0217, 6.0853.7.2780, 7.0217, 14.1343The Color 7.2780, 7.0217, 14.1343.5.0139, 7.0217, 9.4518The Color 5.0139, 7.0217, 9.4518.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.5.0139, 7.0217, 9.4518The Color 5.0139, 7.0217, 9.4518.7.4210, 7.0217, 3.6111The Color 7.4210, 7.0217, 3.6111.8.6650, 7.0217, 6.0853The Color 8.6650, 7.0217, 6.0853.5.9788, 7.0217, 13.9249The Color 5.9788, 7.0217, 13.9249.5.0139, 7.0217, 9.4518The Color 5.0139, 7.0217, 9.4518.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.5.0141, 7.0220, 9.4520The Color 5.0141, 7.0220, 9.4520.3.7718, 3.9682, 4.3214The Color 3.7718, 3.9682, 4.3214.45.3388, 47.7000, 51.9453The Color 45.3388, 47.7000, 51.9453.3.0183, 3.5688, 4.2840The Color 3.0183, 3.5688, 4.2840.3.6000, 6.5317, 1.7726The Color 3.6000, 6.5317, 1.7726.12.0023, 14.0469, 16.7309The Color 12.0023, 14.0469, 16.7309.5.0141, 7.0220, 9.4520The Color 5.0141, 7.0220, 9.4520.Sweetspot

🖌️ View as Color Bucket

SVG Images

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

#155354
Advertisment

Previews

White Background

 

This preview shows how the XYZ color 5.0139, 7.0217, 9.4518 looks on a white background.

The color contrast ratio for these colors is 8.76, 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 5.0139, 7.0217, 9.4518 looks on a black background.

The color contrast ratio for these colors is 2.40, 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 5.0139, 7.0217, 9.4518 Background

 

This preview shows how black text looks on a background with the XYZ color 5.0139, 7.0217, 9.4518.

 

This preview shows how white text looks on a background with the XYZ color 5.0139, 7.0217, 9.4518.

Color Blindness Simulation


Dichromacy

Original Color
5.0027, 6.9860, 9.4723
Protanopia
6.7256, 6.9435, 8.1935
Deuteranopia
7.1228, 7.0148, 9.7827
Tritanopia
5.2214, 6.9625, 10.5199

Trichromacy

Original Color
5.0027, 6.9860, 9.4723
Protanomaly
5.6774, 6.6992, 8.5833
Deuteranomaly
5.9809, 6.8335, 9.5981
Tritanomaly
5.0909, 6.9049, 10.0813

Monochromacy

Original Color
5.0027, 6.9860, 9.4723
Achromatopsia
5.0244, 5.2861, 5.7565
Achromatomaly
4.7537, 5.7556, 6.9913
Advertisment

CSS Examples


The CSS property to change the color of the text to XYZ 5.0139, 7.0217, 9.4518 is called "color". The color property can be set on classes, ids or directly on the HTML element .text, #text, p{ color:rgb(21, 83, 84) }.

This example shows how text in the color rgb(21, 83, 84) looks like.

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

Here you see how black text with a 4 pixel rgb(21, 83, 84) 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 5.0139, 7.0217, 9.4518 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(21, 83, 84) }.

If only the border color should be changed .border{ border-color:rgb(21, 83, 84) } can be used.

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

Background

The CSS property to change the background color of an element to XYZ 5.0139, 7.0217, 9.4518 is called "background". The background property can be set on classes, ids or directly on the HTML element .background, #background, body{ background:rgb(21, 83, 84) }.

If only the background color should be changed .background{ background-color:rgb(21, 83, 84) } 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, "155354", 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 "181°, 75%, 33%" 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(181°, 75%, 33%)" will give you the correct HSV color as there is no need to guess the format. Other examples would be "CIELAB(31.86, -18.76, -6.04)", "CIELCH(32, 19.706, 197.862)", "YXY(7.0217, 0.2333, 0.3268)" and "CMYK(0.75, 0.01, 0.00, 0.67)".


Advertisment