#f51f5a - HEX HTML/CSS Color.

Information about hexadecimal (HEX) color #f51f5a, converting to RGB and HSL.

The hexadecimal color code #f51f5a after converting to RGB will be written as the following values: 245, 31, 90. And when converting to HSL - 343, 91%, 54%

The hexadecimal system is based on the number 16. The numbers in the hexadecimal sequence are as follows: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F. Numbers from 10 to 15 replaced by Latin letters. Numbers greater than 15 in this system are formed by combining two numbers into one.

The HEX value consists of three colors (#rrggbb, where r-red, g-green, b-blue. Each of the three colors - red, green and blue - can range from 00 to FF.

Color #f51f5a is dark. Its brightness level is - 101.712 (the brightness level is counted as a number in the range from 0 to 255).


The full HEX color #f51f5a in RGB will look like this:

rgb(245, 31, 90);

In rgb(x, x, x), 'x' is numbers from 0 to 255 that represent the amount of the corresponding color (red(RED), green(GREEN), blue(BLUE)).


When writing colors in HTML / CSS, HEX or RGB values ​​are most often used. You can also use keywords for named colors. Currently modern browsers can provide HSL support as well.

The complete HEX of color #f51f5a in HSL will look like this:

hsl(343, 91%, 54%);

HSL is another type of color notation in HTML / CSS. The name of this format consists of the first letters of the values ​​from which the color is assembled. Hue, Saturate, Lightness.

Hue the value of the color on the color wheel, which is specified in degrees. 0 ° corresponds to red, 120 ° to green, 240 ° to blue. The hue value can range from 0 to 359.

Saturate - the intensity of the color, measured as a percentage from 0% to 100%. A value of 0% is no color and a shade of gray, and 100% is the maximum saturation value.

Lightness - is a value that shows how bright the color is and is indicated as a percentage from 0% to 100%. A lower value is darker, and a higher value is lighter (0% is white and 100% is black).

RGB, HSL values ​​table for HEX #f51f5a

Color:
HEX: #f51f5a
RGB: rgb(245, 31, 90)
HSL: hsl(343, 91%, 54%)

Color #f51f5a in grayscale (#8a8a8a):

#8a8a8a

The complimentary color for #f51f5a is #1ff5ba.

A complimentary color is one that is opposite in the color wheel. Complementary colors reinforce each other, and when mixed, give a neutral gray without shades.

#1ff5ba

Triad (combination of 3 equally spaced colors) for color #f51f5a:

#f51f5a
#5af51f
#1f5af5

Tetrad (color scheme, a special variant of the dual color scheme with equal spacing between all colors. All four colors are evenly distributed around the color wheel, resulting in no clear dominance of one color) for color #f51f5a:

#f51f5a
#c5f51f
#1ff5ba
#4f1ff5

A palette of similar colors for #f51f5a (generated based on a 30-degree rotation of the color wheel):

#f51f5a
#f51fb0
#f51f85
#f51f5a
#f51f2f
#f53a1f

Monochromatic color palette for #f51f5a:

#f51f5a
#20040c
#4b091c
#750f2b
#a0143b
#ca1a4a

Table with the result of various manipulations (lightening, darkening, etc. with a step of 5%) over the color #f51f5a:

Lighter (step 5%) Darker (step 5%) Brighter (step 5%) Discoloration (step 5%) Saturation (step 5%)
#f51f5a #f51f5a #f51f5a #f51f5a #f51f5a
#f6376c #f00b4a #ff2c67 #ef255d #fb1957
#f7507e #d70a42 #ff3974 #e92b5f #ff1555
#f86890 #bf093b #ff4580 #e33162 #ff1555
#f981a2 #a70733 #ff528d #de3664 #ff1555
#fa99b4 #8e062c #ff5f9a #d83c67 #ff1555
#fcb1c6 #760524 #ff6ca7 #d2426a #ff1555
#fdcad8 #5d041d #ff78b3 #cc486c #ff1555
#fee2ea #450315 #ff85c0 #c64e6f #ff1555
#fffbfc #2c020e #ff92cd #c05472 #ff1555
#ffffff #140106 #ff9fda #ba5974 #ff1555
#ffffff #000000 #ffabe6 #b55f77 #ff1555
#ffffff #000000 #ffb8f3 #af6579 #ff1555
#ffffff #000000 #ffc5ff #a96b7c #ff1555
#ffffff #000000 #ffd2ff #a3717f #ff1555
#ffffff #000000 #ffdeff #9d7781 #ff1555
#ffffff #000000 #ffebff #977d84 #ff1555
#ffffff #000000 #fff8ff #928287 #ff1555
#ffffff #000000 #ffffff #8c8889 #ff1555
#ffffff #000000 #ffffff #8a8a8a #ff1555
#ffffff #000000 #ffffff #8a8a8a #ff1555

Background color (background-color).

Code:

<h1 style="background-color:#f51f5a;">Title text h1</h1> <h1 style="background-color:rgb(245, 31, 90);">Title text h1</h1> <h1 style="background-color:hsl(343, 91%, 54%);">Title text h1</h1>

Цвет текста (color).

Код:

<h1 style="color:#f51f5a;">Title text h1</h1> <h1 style="color:rgb(245, 31, 90);">Title text h1</h1> <h1 style="color:hsl(343, 91%, 54%);">Title text h1</h1>

Border color (border-color).

Код:

<h1 style="border-color:#f51f5a;">Title text h1</h1> <h1 style="border-color:rgb(245, 31, 90);">Title text h1</h1> <h1 style="border-color:hsl(343, 91%, 54%);">Title text h1</h1>

It is also worth noting that the RGB and HSL color formats support an alpha channel (RGBa, HSLa), which sets the transparency level of the color. The alpha channel is written as a fourth value, which can take a value from 0 to 1, where 0 is completely transparent and 1 is opaque.

Format:

rgba(R, G, B, a); hsla(H, S%, L%, a);