#462d9d Color
Color Codes | |
---|---|
Hex Code | #462d9d |
RGB Code | rgb(70, 45, 157) |
HSL Code | hsl(253, 55%, 40%) |
#462d9d Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(70, 45, 157); }
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(253, 55%, 40%); }
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 #462d9d
RGB Code | Hex Code | Preview |
---|---|---|
rgb(70, 45, 157, 10%) | #462d9d1a | |
rgb(70, 45, 157, 20%) | #462d9d33 | |
rgb(70, 45, 157, 40%) | #462d9d4C | |
rgb(70, 45, 157, 60%) | #462d9d99 | |
rgb(70, 45, 157, 80%) | #462d9dCC | |
rgb(70, 45, 157, 100%) | #462d9dFF |
Saturated and desaturated colors of #462d9d
HSL Code | Preview |
---|---|
hsl(253, 10%, 40%) | |
hsl(253, 20%, 40%) | |
hsl(253, 40%, 40%) | |
hsl(253, 60%, 40%) | |
hsl(253, 80%, 40%) | |
hsl(253, 100%, 40%) |
#462d9d Color Usage In CSS
body { color: #462d9d; } p { color: rgb(70, 45, 157); } header { border-bottom:1px solid #462d9d; }