Converting Colors

Conversions

FormatColor
HSL0°, 0%, 43%
CIELCh46, 0.006, 296.813
Yxy15.2926, 0.3127, 0.3290
Android (android.graphics.Color)4285361517 (0xFF6D6D6D)
YUV109.0000, 0.0000, 0.0000

Get Conversions and Harmonies as JSON or XML.


Details

The Hex color 6D6D6D is a dark color, and the websafe version is hex 666666. A complement of this color would be 6D6D6D, and the grayscale version is 6D6D6D.

A 20% lighter version of the original color is A0A0A0, and 3E3E3E is the 20% darker color. If you saturate the color by 10%, you get 6D6262, and if you desaturate by 10%, it is 6D7878.

Distribution

43%43%43%Red, Green, Blue43%43%43%Red, Yellow, Blue0%0%0%57%Cyan, Magenta, Yellow and Black57%57%57%Cyan, Magenta, Yellow

Brightness Gradient

These gradients show how the Hex color 6D6D6D changes by changing the brightness by 10 percent. The first row shows a shift by +10% for each color and the second row -10%.

6D6D6D868686A0A0A0BBBBBBD7D7D7F4F4F4FFFFFF
6D6D6D5555553E3E3E282828131313000000

Saturation Gradient

Similar to the brightness gradients but the following show a change of the Hex color 6D6D6D by changing the saturation by 10% instead.

6D6D6D6D62626D57576D4C4C6D41416D37376D2C2C6D21216D16166D0B0B
6D6D6D6D78786D83836D8E8E6D99996DA3A36DAEAE6DB9B96DC4C46DCFCF

Harmonies

Sweetspot

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

6D6D6D8F8F8F474747C7C7C7

SVG Images

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

#6D6D6D

Previews

White Background

This preview shows how the Hex color 6D6D6D looks on a white background. The color contrast ratio for these colors is 5.17, 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 Hex color 6D6D6D looks on a black background. The color contrast ratio for these colors is 4.06, which passes the AA level for large text above 18pt. Details can be found at https://www.w3.org/TR/WCAG20/.

Hex 6D6D6D Background

This preview shows how black text looks on a background with the Hex color 6D6D6D.

This preview shows how white text looks on a background with the Hex color 6D6D6D.


CSS Examples

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

This example shows how text in the color #6D6D6D looks like.

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

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

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

Here you see how a box with a 4 pixel #6D6D6D colored shadow looks like.

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

Background

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

If only the background color should be changed .background{ background-color:#6D6D6D } 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.


About Converting Colors

Converting Colors allows you to convert between 15 different color formats (hex, rgb, rgb percent, cmy, cmyk, hsv, hsl, cielab, cielch, xyz, yxy, ryb, android, decimal, yuv).

To convert, paste a string in one of these color formats, for example, "6D6D6D", 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 "0°, 0%, 43%" 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(0°, 0%, 43%)" will give you the correct HSV color as there is no need to guess the format. Other examples would be "CIELAB(46.03, 0.00, -0.01)", "CIELCH(46, 0.006, 296.813)", "YXY(15.2926, 0.3127, 0.3290)" and "CMYK(0.00, 0.00, 0.00, 0.57)".

Follow Converting Colors on Twitter and check out my UWP apps and other tools.