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 2
FormatColor
RYB158, 46, 139
Decimal10366603
CIELab39.75, 56.01, -27.45
CIELCh40, 62.374, 333.894
Yxy11.1012, 0.3497, 0.1963
Android (android.graphics.Color)4288556683 (0xFF9E2E8B)
YUV90.0900, 24.1126, 59.5571

Details

The HSL color 310°, 55%, 40% is a dark color, and the websafe version is hex 993399. A complement of this color would be 130°, 55%, 40%, and the grayscale version is 0°, 0%, 45%.

A 20% lighter version of the original color is 125°, 57%, 63%, and 127°, 100%, 21% is the 20% darker color. If you saturate the color by 10%, you get 130°, 68%, 37%, and if you desaturate by 10%, it is 130°, 44%, 43%.

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 HSL color 130°, 55%, 40% 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 HSL color 130°, 55%, 40% 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%.130°, 55%, 40%The Color 130°, 55%, 40%.0°, 0%, 100%The Color 0°, 0%, 100%.128°, 100%, 100%The Color 128°, 100%, 100%.122°, 100%, 94%The Color 122°, 100%, 94%.122°, 100%, 88%The Color 122°, 100%, 88%.122°, 100%, 82%The Color 122°, 100%, 82%.123°, 81%, 74%The Color 123°, 81%, 74%.124°, 56%, 63%The Color 124°, 56%, 63%.126°, 44%, 52%The Color 126°, 44%, 52%.130°, 55%, 40%The Color 130°, 55%, 40%.Brightness Gradient

🖌️ View as Color Bucket

Brightness Gradient[Translation for "HARMONY_BRIGHTNESS_1_TEXT" not found]130°, 55%, 40%The Color 130°, 55%, 40%.0°, 0%, 0%The Color 0°, 0%, 0%.120°, 100%, 7%The Color 120°, 100%, 7%.120°, 100%, 11%The Color 120°, 100%, 11%.120°, 100%, 16%The Color 120°, 100%, 16%.127°, 100%, 21%The Color 127°, 100%, 21%.138°, 100%, 26%The Color 138°, 100%, 26%.130°, 55%, 40%The Color 130°, 55%, 40%.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.130°, 55%, 40%The Color 130°, 55%, 40%.130°, 100%, 31%The Color 130°, 100%, 31%.130°, 83%, 34%The Color 130°, 83%, 34%.130°, 68%, 37%The Color 130°, 68%, 37%.130°, 55%, 40%The Color 130°, 55%, 40%.Saturation Gradient

🖌️ View as Color Bucket

Saturation Gradient[Translation for "HARMONY_SATURATION_1_TEXT" not found]130°, 55%, 40%The Color 130°, 55%, 40%.310°, 18%, 68%The Color 310°, 18%, 68%.310°, 8%, 65%The Color 310°, 8%, 65%.130°, 1%, 62%The Color 130°, 1%, 62%.130°, 8%, 59%The Color 130°, 8%, 59%.130°, 15%, 56%The Color 130°, 15%, 56%.130°, 20%, 52%The Color 130°, 20%, 52%.130°, 26%, 49%The Color 130°, 26%, 49%.130°, 34%, 46%The Color 130°, 34%, 46%.130°, 44%, 43%The Color 130°, 44%, 43%.130°, 55%, 40%The Color 130°, 55%, 40%.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.70°, 89%, 31%The Color 70°, 89%, 31%.165°, 100%, 32%The Color 165°, 100%, 32%.130°, 55%, 40%The Color 130°, 55%, 40%.70°, 89%, 31%The Color 70°, 89%, 31%.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.130°, 55%, 40%The Color 130°, 55%, 40%.354°, 81%, 63%The Color 354°, 81%, 63%.204°, 100%, 49%The Color 204°, 100%, 49%.130°, 55%, 40%The Color 130°, 55%, 40%.Triad

🖌️ 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.172°, 100%, 23%The Color 172°, 100%, 23%.89°, 100%, 21%The Color 89°, 100%, 21%.310°, 55%, 40%The Color 310°, 55%, 40%.172°, 100%, 23%The Color 172°, 100%, 23%.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.310°, 55%, 40%The Color 310°, 55%, 40%.204°, 100%, 36%The Color 204°, 100%, 36%.144°, 100%, 22%The Color 144°, 100%, 22%.30°, 100%, 29%The Color 30°, 100%, 29%.310°, 55%, 40%The Color 310°, 55%, 40%.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.310°, 55%, 40%The Color 310°, 55%, 40%.188°, 100%, 26%The Color 188°, 100%, 26%.144°, 100%, 22%The Color 144°, 100%, 22%.351°, 68%, 42%The Color 351°, 68%, 42%.310°, 55%, 40%The Color 310°, 55%, 40%.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.310°, 55%, 40%The Color 310°, 55%, 40%.0°, 0%, 41%The Color 0°, 0%, 41%.0°, 0%, 91%The Color 0°, 0%, 91%.310°, 14%, 36%The Color 310°, 14%, 36%.250°, 55%, 40%The Color 250°, 55%, 40%.310°, 31%, 72%The Color 310°, 31%, 72%.310°, 55%, 40%The Color 310°, 55%, 40%.Sweetspot

🖌️ View as Color Bucket

SVG Images

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

#9E2E8B
Advertisment

Previews

White Background

 

This preview shows how the HSL color 310°, 55%, 40% looks on a white background.

The color contrast ratio for these colors is 6.53, 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 HSL color 310°, 55%, 40% looks on a black background.

The color contrast ratio for these colors is 3.22, which passes the AA level for large text above 18pt. Details can be found at https://www.w3.org/TR/WCAG20/.

HSL 310°, 55%, 40% Background

 

This preview shows how black text looks on a background with the HSL color 310°, 55%, 40%.

 

This preview shows how white text looks on a background with the HSL color 310°, 55%, 40%.

Color Blindness Simulation


Dichromacy

Original Color
310°, 55%, 40%
Protanopia
220°, 58%, 44%
Deuteranopia
226°, 23%, 42%
Tritanopia
356°, 39%, 43%

Trichromacy

Original Color
310°, 55%, 40%
Protanomaly
248°, 38%, 47%
Deuteranomaly
274°, 27%, 42%
Tritanomaly
336°, 45%, 42%

Monochromacy

Original Color
310°, 55%, 40%
Achromatopsia
0°, 0%, 35%
Achromatomaly
310°, 22%, 37%
Advertisment

CSS Examples


The CSS property to change the color of the text to HSL 310°, 55%, 40% is called "color". The color property can be set on classes, ids or directly on the HTML element .text, #text, p{ color:hsl(310, 55%, 40%) }.

This example shows how text in the color hsl(310, 55%, 40%) looks like.

If you want to add a text shadow in that color use .shadow{ text-shadow: 4px 4px 2px hsl(310, 55%, 40%) }.

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

If only the border color should be changed .border{ border-color:hsl(310, 55%, 40%) } can be used.

Here you see how a box with a 4 pixel hsl(310, 55%, 40%) colored shadow looks like.

If you want to add a box shadow in that color use .boxshadow{ -moz-box-shadow:4px 4px 4px 4px hsl(310, 55%, 40%); -webkit-box-shadow:4px 4px 4px 4px hsl(310, 55%, 40%); box-shadow:4px 4px 4px 4px hsl(310, 55%, 40%) }.

Background

The CSS property to change the background color of an element to HSL 310°, 55%, 40% is called "background". The background property can be set on classes, ids or directly on the HTML element .background, #background, body{ background:hsl(310, 55%, 40%) }.

If only the background color should be changed .background{ background-color:hsl(310, 55%, 40%) } 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, "9E2E8B", 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 "310°, 71%, 62%" 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(310°, 71%, 62%)" will give you the correct HSV color as there is no need to guess the format. Other examples would be "CIELAB(39.75, 56.01, -27.45)", "CIELCH(40, 62.374, 333.894)", "YXY(11.1012, 0.3497, 0.1963)" and "CMYK(0.00, 0.71, 0.12, 0.38)".


Advertisment