#4d5caa Color
Color Codes | |
---|---|
Hex Code | #4d5caa |
RGB Code | rgb(77, 92, 170) |
HSL Code | hsl(230, 38%, 48%) |
#4d5caa Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(77, 92, 170); }
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(230, 38%, 48%); }
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 #4d5caa
RGB Code | Hex Code | Preview |
---|---|---|
rgb(77, 92, 170, 10%) | #4d5caa1a | |
rgb(77, 92, 170, 20%) | #4d5caa33 | |
rgb(77, 92, 170, 40%) | #4d5caa4C | |
rgb(77, 92, 170, 60%) | #4d5caa99 | |
rgb(77, 92, 170, 80%) | #4d5caaCC | |
rgb(77, 92, 170, 100%) | #4d5caaFF |
Saturated and desaturated colors of #4d5caa
HSL Code | Preview |
---|---|
hsl(230, 10%, 48%) | |
hsl(230, 20%, 48%) | |
hsl(230, 40%, 48%) | |
hsl(230, 60%, 48%) | |
hsl(230, 80%, 48%) | |
hsl(230, 100%, 48%) |
#4d5caa Color Usage In CSS
body { color: #4d5caa; } p { color: rgb(77, 92, 170); } header { border-bottom:1px solid #4d5caa; }