Converting Colors

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

Conversions

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

FormatColor
HSL172°, 15%, 11%
CIELCh11, 3.928, 187.619
Yxy1.2559, 0.2876, 0.3351
Android (android.graphics.Color)4279705374 (0xFF171F1E)
YUV28.4940, 0.7425, -4.8182

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


Details

The Hex color 171F1E is a dark color, and the websafe version is hex 333333. A complement of this color would be 1F1718, and the grayscale version is 1C1C1C.

A 20% lighter version of the original color is 424B4A, and 000000 is the 20% darker color. If you saturate the color by 10%, you get 141F1E, and if you desaturate by 10%, it is 1A1F1E.

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 Hex color 171F1E 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%.171F1EThe Color 171F1E.F9FFFFThe Color F9FFFF.DDE7E6The Color DDE7E6.C1CBCAThe Color C1CBCA.A6B0AEThe Color A6B0AE.8B9594The Color 8B9594.727B7AThe Color 727B7A.596361The Color 596361.424B4AThe Color 424B4A.2C3433The Color 2C3433.171F1EThe Color 171F1E.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%.171F1EThe Color 171F1E.000000The Color 000000.000705The Color 000705.171F1EThe Color 171F1E.Brightness Gradient

Saturation Gradient

Similar to the brightness gradients but the following show a change of the Hex color 171F1E 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.171F1EThe Color 171F1E.001F1BThe Color 001F1B.011F1BThe Color 011F1B.041F1CThe Color 041F1C.071F1CThe Color 071F1C.0B1F1CThe Color 0B1F1C.0E1F1DThe Color 0E1F1D.111F1DThe Color 111F1D.141F1EThe Color 141F1E.171F1EThe Color 171F1E.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.171F1EThe Color 171F1E.331F21The Color 331F21.301F21The Color 301F21.2D1F21The Color 2D1F21.2A1F20The Color 2A1F20.271F20The Color 271F20.231F20The Color 231F20.201F1FThe Color 201F1F.1D1F1FThe Color 1D1F1F.1A1F1EThe Color 1A1F1E.171F1EThe Color 171F1E.Saturation Gradient

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.191F1BThe Color 191F1B.171F21The Color 171F21.171F1EThe Color 171F1E.191F1BThe Color 191F1B.Analogous

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.171F1EThe Color 171F1E.211D19The Color 211D19.1F1D22The Color 1F1D22.171F1EThe Color 171F1E.Triad

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.171F1EThe Color 171F1E.1F1718The Color 1F1718.171F1EThe Color 171F1E.Complementary

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.231C1AThe Color 231C1A.221C1FThe Color 221C1F.171F1EThe Color 171F1E.231C1AThe Color 231C1A.Split Complementary

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.171F1EThe Color 171F1E.1F1D18The Color 1F1D18.231C1DThe Color 231C1D.1B1D23The Color 1B1D23.171F1EThe Color 171F1E.Square

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.171F1EThe Color 171F1E.221C19The Color 221C19.231C1DThe Color 231C1D.181E22The Color 181E22.171F1EThe Color 171F1E.Rectangle

Sweetspot

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

SweetspotThe sweet spot groups the original color and five complimentary colors.171F1EThe Color 171F1E.141414The Color 141414.949494The Color 949494.121414The Color 121414.181F17The Color 181F17.262928The Color 262928.171F1EThe Color 171F1E.Sweetspot

SVG Images

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

#171F1E

Previews

White Background

This preview shows how the Hex color 171F1E looks on a white background.

The color contrast ratio for these colors is 16.78, 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 Hex color 171F1E looks on a black background.

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

Hex 171F1E Background

This preview shows how black text looks on a background with the Hex color 171F1E.

This preview shows how white text looks on a background with the Hex color 171F1E.


CSS Examples


The CSS property to change the color of the text to Hex 171F1E is called "color". The color property can be set on classes, ids or directly on the HTML element .text, #text, p{ color:#171F1E }.

This example shows how text in the color #171F1E looks like.

If you want to add a text shadow in that color use .shadow{ text-shadow: 4px 4px 2px #171F1E }.

Here you see how black text with a 4 pixel #171F1E 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 Hex 171F1E is called "border". The border property can be set on classes, ids or directly on the HTML element .border, #border, table{ border:4px solid #171F1E }.

If only the border color should be changed .border{ border-color:#171F1E } can be used.

Here you see how a box with a 4 pixel #171F1E colored shadow looks like.

If you want to add a box shadow in that color use .boxshadow{ -moz-box-shadow:4px 4px 4px 4px #171F1E; -webkit-box-shadow:4px 4px 4px 4px #171F1E; box-shadow:4px 4px 4px 4px #171F1E }.

Background

The CSS property to change the background color of an element to Hex 171F1E is called "background". The background property can be set on classes, ids or directly on the HTML element .background, #background, body{ background:#171F1E }.

If only the background color should be changed .background{ background-color:#171F1E } 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, "171F1E", 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 "172°, 26%, 12%" 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(172°, 26%, 12%)" will give you the correct HSV color as there is no need to guess the format. Other examples would be "CIELAB(10.96, -3.89, -0.52)", "CIELCH(11, 3.928, 187.619)", "YXY(1.2559, 0.2876, 0.3351)" and "CMYK(0.26, 0.00, 0.03, 0.88)".