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
HexA1A1A1
RGB161, 161, 161
RGB Percent63%, 63%, 63%
CMY0.3686, 0.3686, 0.3686
CMYK0.00, 0.00, 0.00, 0.37
HSL0°, 0%, 63%
HSV0°, 0%, 63%
XYZ33.8758, 35.6400, 38.8120
Conversions Part 2
FormatColor
RYB161, 161, 161
Decimal10592673
CIELab66.24, 0.00, -0.01
CIELCh66, 0.008, 296.813
Yxy35.6400, 0.3127, 0.3290
Android (android.graphics.Color)4288782753 (0xFFA1A1A1)
YUV161.0000, 0.0000, 0.0000

Details

The Hex color A1A1A1 is a light color, and the websafe version is hex 999999. A complement of this color would be A1A1A1, and the grayscale version is A1A1A1.

A 20% lighter version of the original color is D8D8D8, and 6E6E6E is the 20% darker color. If you saturate the color by 10%, you get A19191, and if you desaturate by 10%, it is A1B1B1.

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 Hex color A1A1A1 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 Hex color A1A1A1 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%.A1A1A1The Color A1A1A1.FFFFFFThe Color FFFFFF.F4F4F4The Color F4F4F4.D8D8D8The Color D8D8D8.BCBCBCThe Color BCBCBC.A1A1A1The Color A1A1A1.Brightness Gradient

🖌️ View as Color Bucket

Brightness Gradient[Translation for "HARMONY_BRIGHTNESS_1_TEXT" not found]A1A1A1The Color A1A1A1.000000The Color 000000.141414The Color 141414.282828The Color 282828.3E3E3EThe Color 3E3E3E.555555The Color 555555.6E6E6EThe Color 6E6E6E.878787The Color 878787.A1A1A1The Color A1A1A1.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.A1A1A1The Color A1A1A1.A11010The Color A11010.A12020The Color A12020.A13030The Color A13030.A14040The Color A14040.A15151The Color A15151.A16161The Color A16161.A17171The Color A17171.A18181The Color A18181.A19191The Color A19191.A1A1A1The Color A1A1A1.Saturation Gradient

🖌️ View as Color Bucket

Saturation Gradient[Translation for "HARMONY_SATURATION_1_TEXT" not found]A1A1A1The Color A1A1A1.A1FFFFThe Color A1FFFF.A1F2F2The Color A1F2F2.A1E1E1The Color A1E1E1.A1D1D1The Color A1D1D1.A1C1C1The Color A1C1C1.A1B1B1The Color A1B1B1.A1A1A1The Color A1A1A1.Saturation Gradient

🖌️ View as Color Bucket

Advertisment

Harmonies

Sweetspot

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

SweetspotThe sweet spot groups the original color and five complimentary colors.A1A1A1The Color A1A1A1.E8E8E8The Color E8E8E8.696969The Color 696969.D1D1D1The Color D1D1D1.A1A1A1The Color A1A1A1.Sweetspot

🖌️ View as Color Bucket

SVG Images

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

#A1A1A1
Advertisment

Previews

White Background

 

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

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

Black Background

 

This preview shows how the Hex color A1A1A1 looks on a black background.

The color contrast ratio for these colors is 8.13, 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/.

Hex A1A1A1 Background

 

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

 

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

Color Blindness Simulation


Dichromacy

Original Color
A1A1A1
Protanopia
A4A0A1
Deuteranopia
B09CA2
Tritanopia
A39FAC

Trichromacy

Original Color
A1A1A1
Protanomaly
A3A0A1
Deuteranomaly
AB9EA2
Tritanomaly
A2A0A8

Monochromacy

Original Color
A1A1A1
Achromatopsia
A1A1A1
Achromatomaly
A1A1A1
Advertisment

CSS Examples


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

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

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

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

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

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

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

Background

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

If only the background color should be changed .background{ background-color:#A1A1A1 } 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, "A1A1A1", 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%, 63%" 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%, 63%)" will give you the correct HSV color as there is no need to guess the format. Other examples would be "CIELAB(66.24, 0.00, -0.01)", "CIELCH(66, 0.008, 296.813)", "YXY(35.6400, 0.3127, 0.3290)" and "CMYK(0.00, 0.00, 0.00, 0.37)".


Advertisment