#5239cb Color
Color Codes | |
---|---|
Hex Code | #5239cb |
RGB Code | rgb(82, 57, 203) |
HSL Code | hsl(250, 58%, 51%) |
#5239cb Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(82, 57, 203); }
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(250, 58%, 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 #5239cb
RGB Code | Hex Code | Preview |
---|---|---|
rgb(82, 57, 203, 10%) | #5239cb1a | |
rgb(82, 57, 203, 20%) | #5239cb33 | |
rgb(82, 57, 203, 40%) | #5239cb4C | |
rgb(82, 57, 203, 60%) | #5239cb99 | |
rgb(82, 57, 203, 80%) | #5239cbCC | |
rgb(82, 57, 203, 100%) | #5239cbFF |
Saturated and desaturated colors of #5239cb
HSL Code | Preview |
---|---|
hsl(250, 10%, 51%) | |
hsl(250, 20%, 51%) | |
hsl(250, 40%, 51%) | |
hsl(250, 60%, 51%) | |
hsl(250, 80%, 51%) | |
hsl(250, 100%, 51%) |
#5239cb Color Usage In CSS
body { color: #5239cb; } p { color: rgb(82, 57, 203); } header { border-bottom:1px solid #5239cb; }