#5e08cc Color
Color Codes | |
---|---|
Hex Code | #5e08cc |
RGB Code | rgb(94, 08, 204) |
HSL Code | hsl(266, 92%, 42%) |
#5e08cc Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(94, 08, 204); }
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(266, 92%, 42%); }
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 #5e08cc
RGB Code | Hex Code | Preview |
---|---|---|
rgb(94, 08, 204, 10%) | #5e08cc1a | |
rgb(94, 08, 204, 20%) | #5e08cc33 | |
rgb(94, 08, 204, 40%) | #5e08cc4C | |
rgb(94, 08, 204, 60%) | #5e08cc99 | |
rgb(94, 08, 204, 80%) | #5e08ccCC | |
rgb(94, 08, 204, 100%) | #5e08ccFF |
Saturated and desaturated colors of #5e08cc
HSL Code | Preview |
---|---|
hsl(266, 10%, 42%) | |
hsl(266, 20%, 42%) | |
hsl(266, 40%, 42%) | |
hsl(266, 60%, 42%) | |
hsl(266, 80%, 42%) | |
hsl(266, 100%, 42%) |
#5e08cc Color Usage In CSS
body { color: #5e08cc; } p { color: rgb(94, 08, 204); } header { border-bottom:1px solid #5e08cc; }