#5d18bb Color
Color Codes | |
---|---|
Hex Code | #5d18bb |
RGB Code | rgb(93, 24, 187) |
HSL Code | hsl(265, 77%, 41%) |
#5d18bb Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(93, 24, 187); }
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(265, 77%, 41%); }
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 #5d18bb
RGB Code | Hex Code | Preview |
---|---|---|
rgb(93, 24, 187, 10%) | #5d18bb1a | |
rgb(93, 24, 187, 20%) | #5d18bb33 | |
rgb(93, 24, 187, 40%) | #5d18bb4C | |
rgb(93, 24, 187, 60%) | #5d18bb99 | |
rgb(93, 24, 187, 80%) | #5d18bbCC | |
rgb(93, 24, 187, 100%) | #5d18bbFF |
Saturated and desaturated colors of #5d18bb
HSL Code | Preview |
---|---|
hsl(265, 10%, 41%) | |
hsl(265, 20%, 41%) | |
hsl(265, 40%, 41%) | |
hsl(265, 60%, 41%) | |
hsl(265, 80%, 41%) | |
hsl(265, 100%, 41%) |
#5d18bb Color Usage In CSS
body { color: #5d18bb; } p { color: rgb(93, 24, 187); } header { border-bottom:1px solid #5d18bb; }