#5035ab Color
Color Codes | |
---|---|
Hex Code | #5035ab |
RGB Code | rgb(80, 53, 171) |
HSL Code | hsl(254, 53%, 44%) |
#5035ab Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(80, 53, 171); }
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(254, 53%, 44%); }
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 #5035ab
RGB Code | Hex Code | Preview |
---|---|---|
rgb(80, 53, 171, 10%) | #5035ab1a | |
rgb(80, 53, 171, 20%) | #5035ab33 | |
rgb(80, 53, 171, 40%) | #5035ab4C | |
rgb(80, 53, 171, 60%) | #5035ab99 | |
rgb(80, 53, 171, 80%) | #5035abCC | |
rgb(80, 53, 171, 100%) | #5035abFF |
Saturated and desaturated colors of #5035ab
HSL Code | Preview |
---|---|
hsl(254, 10%, 44%) | |
hsl(254, 20%, 44%) | |
hsl(254, 40%, 44%) | |
hsl(254, 60%, 44%) | |
hsl(254, 80%, 44%) | |
hsl(254, 100%, 44%) |
#5035ab Color Usage In CSS
body { color: #5035ab; } p { color: rgb(80, 53, 171); } header { border-bottom:1px solid #5035ab; }