#a251fc - HEX HTML/CSS Color.

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

The hexadecimal color code #a251fc after converting to RGB will be written as the following values: 162, 81, 252. And when converting to HSL - 268, 97%, 65%

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 #a251fc is dark. Its brightness level is - 124.713 (the brightness level is counted as a number in the range from 0 to 255).


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

rgb(162, 81, 252);

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 #a251fc in HSL will look like this:

hsl(268, 97%, 65%);

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 #a251fc

Color:
HEX: #a251fc
RGB: rgb(162, 81, 252)
HSL: hsl(268, 97%, 65%)

Color #a251fc in grayscale (#a6a6a6):

#a6a6a6

The complimentary color for #a251fc is #abfc51.

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.

#abfc51

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

#a251fc
#fca251
#51fca2

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 #a251fc:

#a251fc
#fc5155
#abfc51
#51fcf7

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

#a251fc
#5e51fc
#8051fc
#a251fc
#c451fc
#e651fc

Monochromatic color palette for #a251fc:

#a251fc
#190d27
#351a52
#50287c
#6b36a7
#8743d1

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

Lighter (step 5%) Darker (step 5%) Brighter (step 5%) Discoloration (step 5%) Saturation (step 5%)
#a251fc #a251fc #a251fc #a251fc #a251fc
#af6afc #9538fc #af5eff #a255f8 #a24eff
#bd83fd #871ffb #bc6bff #a25af3 #a24eff
#ca9cfd #7a06fb #c877ff #a35eef #a24eff
#d8b5fe #6e04e3 #d584ff #a363ea #a24eff
#e5cefe #6203ca #e291ff #a367e6 #a24eff
#f2e7ff #5503b1 #ef9eff #a36ce1 #a24eff
#ffffff #490398 #fbaaff #a470dd #a24eff
#ffffff #3d027f #ffb7ff #a474d9 #a24eff
#ffffff #310266 #ffc4ff #a479d4 #a24eff
#ffffff #25014d #ffd1ff #a47dd0 #a24eff
#ffffff #190134 #ffddff #a582cb #a24eff
#ffffff #0d001b #ffeaff #a586c7 #a24eff
#ffffff #010001 #fff7ff #a58bc2 #a24eff
#ffffff #000000 #ffffff #a58fbe #a24eff
#ffffff #000000 #ffffff #a593ba #a24eff
#ffffff #000000 #ffffff #a698b5 #a24eff
#ffffff #000000 #ffffff #a69cb1 #a24eff
#ffffff #000000 #ffffff #a6a1ac #a24eff
#ffffff #000000 #ffffff #a6a5a8 #a24eff
#ffffff #000000 #ffffff #a6a6a6 #a24eff

Background color (background-color).

Code:

<h1 style="background-color:#a251fc;">Title text h1</h1> <h1 style="background-color:rgb(162, 81, 252);">Title text h1</h1> <h1 style="background-color:hsl(268, 97%, 65%);">Title text h1</h1>

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

Код:

<h1 style="color:#a251fc;">Title text h1</h1> <h1 style="color:rgb(162, 81, 252);">Title text h1</h1> <h1 style="color:hsl(268, 97%, 65%);">Title text h1</h1>

Border color (border-color).

Код:

<h1 style="border-color:#a251fc;">Title text h1</h1> <h1 style="border-color:rgb(162, 81, 252);">Title text h1</h1> <h1 style="border-color:hsl(268, 97%, 65%);">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);