#5f10d1 Color
Color Codes | |
---|---|
Hex Code | #5f10d1 |
RGB Code | rgb(95, 16, 209) |
HSL Code | hsl(265, 86%, 44%) |
#5f10d1 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(95, 16, 209); }
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, 86%, 44%); }
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 #5f10d1
RGB Code | Hex Code | Preview |
---|---|---|
rgb(95, 16, 209, 10%) | #5f10d11a | |
rgb(95, 16, 209, 20%) | #5f10d133 | |
rgb(95, 16, 209, 40%) | #5f10d14C | |
rgb(95, 16, 209, 60%) | #5f10d199 | |
rgb(95, 16, 209, 80%) | #5f10d1CC | |
rgb(95, 16, 209, 100%) | #5f10d1FF |
Saturated and desaturated colors of #5f10d1
HSL Code | Preview |
---|---|
hsl(265, 10%, 44%) | |
hsl(265, 20%, 44%) | |
hsl(265, 40%, 44%) | |
hsl(265, 60%, 44%) | |
hsl(265, 80%, 44%) | |
hsl(265, 100%, 44%) |
#5f10d1 Color Usage In CSS
body { color: #5f10d1; } p { color: rgb(95, 16, 209); } header { border-bottom:1px solid #5f10d1; }