#5e3bc9 Color
Color Codes | |
---|---|
Hex Code | #5e3bc9 |
RGB Code | rgb(94, 59, 201) |
HSL Code | hsl(255, 57%, 51%) |
#5e3bc9 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(94, 59, 201); }
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(255, 57%, 51%); }
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 #5e3bc9
RGB Code | Hex Code | Preview |
---|---|---|
rgb(94, 59, 201, 10%) | #5e3bc91a | |
rgb(94, 59, 201, 20%) | #5e3bc933 | |
rgb(94, 59, 201, 40%) | #5e3bc94C | |
rgb(94, 59, 201, 60%) | #5e3bc999 | |
rgb(94, 59, 201, 80%) | #5e3bc9CC | |
rgb(94, 59, 201, 100%) | #5e3bc9FF |
Saturated and desaturated colors of #5e3bc9
HSL Code | Preview |
---|---|
hsl(255, 10%, 51%) | |
hsl(255, 20%, 51%) | |
hsl(255, 40%, 51%) | |
hsl(255, 60%, 51%) | |
hsl(255, 80%, 51%) | |
hsl(255, 100%, 51%) |
#5e3bc9 Color Usage In CSS
body { color: #5e3bc9; } p { color: rgb(94, 59, 201); } header { border-bottom:1px solid #5e3bc9; }