#5c30e1 Color
Color Codes | |
---|---|
Hex Code | #5c30e1 |
RGB Code | rgb(92, 48, 225) |
HSL Code | hsl(255, 75%, 54%) |
#5c30e1 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(92, 48, 225); }
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, 75%, 54%); }
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 #5c30e1
RGB Code | Hex Code | Preview |
---|---|---|
rgb(92, 48, 225, 10%) | #5c30e11a | |
rgb(92, 48, 225, 20%) | #5c30e133 | |
rgb(92, 48, 225, 40%) | #5c30e14C | |
rgb(92, 48, 225, 60%) | #5c30e199 | |
rgb(92, 48, 225, 80%) | #5c30e1CC | |
rgb(92, 48, 225, 100%) | #5c30e1FF |
Saturated and desaturated colors of #5c30e1
HSL Code | Preview |
---|---|
hsl(255, 10%, 54%) | |
hsl(255, 20%, 54%) | |
hsl(255, 40%, 54%) | |
hsl(255, 60%, 54%) | |
hsl(255, 80%, 54%) | |
hsl(255, 100%, 54%) |
#5c30e1 Color Usage In CSS
body { color: #5c30e1; } p { color: rgb(92, 48, 225); } header { border-bottom:1px solid #5c30e1; }