#e22a7b Color
Color Codes | |
---|---|
Hex Code | #e22a7b |
RGB Code | rgb(226, 42, 123) |
HSL Code | hsl(334, 76%, 53%) |
#e22a7b Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(226, 42, 123); }
R(red), G(green), B(blue) can be number between 0-255.
A parameter is a hex characters (0–9, A–F) and optional.
hsl()
hsl(hue saturation lightness); hsl(hue saturation lightness / alpha); div { background-color: hsl(334, 76%, 53%); }
Saturation value is a percentage value between 0% unsaturated and 100% fully saturated.
Lightness value is a percentage value between 100% is white and 0% is black.
Lighter and darker colors of #e22a7b
RGB Code | Hex Code | Preview |
---|---|---|
rgb(226, 42, 123, 10%) | #e22a7b1a | |
rgb(226, 42, 123, 20%) | #e22a7b33 | |
rgb(226, 42, 123, 40%) | #e22a7b4C | |
rgb(226, 42, 123, 60%) | #e22a7b99 | |
rgb(226, 42, 123, 80%) | #e22a7bCC | |
rgb(226, 42, 123, 100%) | #e22a7bFF |
Saturated and desaturated colors of #e22a7b
HSL Code | Preview |
---|---|
hsl(334, 10%, 53%) | |
hsl(334, 20%, 53%) | |
hsl(334, 40%, 53%) | |
hsl(334, 60%, 53%) | |
hsl(334, 80%, 53%) | |
hsl(334, 100%, 53%) |
#e22a7b Color Usage In CSS
body { color: #e22a7b; } p { color: rgb(226, 42, 123); } header { border-bottom:1px solid #e22a7b; }