#5d41fb Color
Color Codes | |
---|---|
Hex Code | #5d41fb |
RGB Code | rgb(93, 65, 251) |
HSL Code | hsl(249, 96%, 62%) |
#5d41fb Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(93, 65, 251); }
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(249, 96%, 62%); }
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 #5d41fb
RGB Code | Hex Code | Preview |
---|---|---|
rgb(93, 65, 251, 10%) | #5d41fb1a | |
rgb(93, 65, 251, 20%) | #5d41fb33 | |
rgb(93, 65, 251, 40%) | #5d41fb4C | |
rgb(93, 65, 251, 60%) | #5d41fb99 | |
rgb(93, 65, 251, 80%) | #5d41fbCC | |
rgb(93, 65, 251, 100%) | #5d41fbFF |
Saturated and desaturated colors of #5d41fb
HSL Code | Preview |
---|---|
hsl(249, 10%, 62%) | |
hsl(249, 20%, 62%) | |
hsl(249, 40%, 62%) | |
hsl(249, 60%, 62%) | |
hsl(249, 80%, 62%) | |
hsl(249, 100%, 62%) |
#5d41fb Color Usage In CSS
body { color: #5d41fb; } p { color: rgb(93, 65, 251); } header { border-bottom:1px solid #5d41fb; }