#4a1877 Color
Color Codes | |
---|---|
Hex Code | #4a1877 |
RGB Code | rgb(74, 24, 119) |
HSL Code | hsl(272, 66%, 28%) |
#4a1877 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(74, 24, 119); }
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(272, 66%, 28%); }
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 #4a1877
RGB Code | Hex Code | Preview |
---|---|---|
rgb(74, 24, 119, 10%) | #4a18771a | |
rgb(74, 24, 119, 20%) | #4a187733 | |
rgb(74, 24, 119, 40%) | #4a18774C | |
rgb(74, 24, 119, 60%) | #4a187799 | |
rgb(74, 24, 119, 80%) | #4a1877CC | |
rgb(74, 24, 119, 100%) | #4a1877FF |
Saturated and desaturated colors of #4a1877
HSL Code | Preview |
---|---|
hsl(272, 10%, 28%) | |
hsl(272, 20%, 28%) | |
hsl(272, 40%, 28%) | |
hsl(272, 60%, 28%) | |
hsl(272, 80%, 28%) | |
hsl(272, 100%, 28%) |
#4a1877 Color Usage In CSS
body { color: #4a1877; } p { color: rgb(74, 24, 119); } header { border-bottom:1px solid #4a1877; }