#4b0bed Color
Color Codes | |
---|---|
Hex Code | #4b0bed |
RGB Code | rgb(75, 11, 237) |
HSL Code | hsl(257, 91%, 49%) |
#4b0bed Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(75, 11, 237); }
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(257, 91%, 49%); }
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 #4b0bed
RGB Code | Hex Code | Preview |
---|---|---|
rgb(75, 11, 237, 10%) | #4b0bed1a | |
rgb(75, 11, 237, 20%) | #4b0bed33 | |
rgb(75, 11, 237, 40%) | #4b0bed4C | |
rgb(75, 11, 237, 60%) | #4b0bed99 | |
rgb(75, 11, 237, 80%) | #4b0bedCC | |
rgb(75, 11, 237, 100%) | #4b0bedFF |
Saturated and desaturated colors of #4b0bed
HSL Code | Preview |
---|---|
hsl(257, 10%, 49%) | |
hsl(257, 20%, 49%) | |
hsl(257, 40%, 49%) | |
hsl(257, 60%, 49%) | |
hsl(257, 80%, 49%) | |
hsl(257, 100%, 49%) |
#4b0bed Color Usage In CSS
body { color: #4b0bed; } p { color: rgb(75, 11, 237); } header { border-bottom:1px solid #4b0bed; }