#4a16b3 Color
Color Codes | |
---|---|
Hex Code | #4a16b3 |
RGB Code | rgb(74, 22, 179) |
HSL Code | hsl(260, 78%, 39%) |
#4a16b3 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(74, 22, 179); }
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(260, 78%, 39%); }
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 #4a16b3
RGB Code | Hex Code | Preview |
---|---|---|
rgb(74, 22, 179, 10%) | #4a16b31a | |
rgb(74, 22, 179, 20%) | #4a16b333 | |
rgb(74, 22, 179, 40%) | #4a16b34C | |
rgb(74, 22, 179, 60%) | #4a16b399 | |
rgb(74, 22, 179, 80%) | #4a16b3CC | |
rgb(74, 22, 179, 100%) | #4a16b3FF |
Saturated and desaturated colors of #4a16b3
HSL Code | Preview |
---|---|
hsl(260, 10%, 39%) | |
hsl(260, 20%, 39%) | |
hsl(260, 40%, 39%) | |
hsl(260, 60%, 39%) | |
hsl(260, 80%, 39%) | |
hsl(260, 100%, 39%) |
#4a16b3 Color Usage In CSS
body { color: #4a16b3; } p { color: rgb(74, 22, 179); } header { border-bottom:1px solid #4a16b3; }