#970df7 Color
Color Codes | |
---|---|
Hex Code | #970df7 |
RGB Code | rgb(151, 13, 247) |
HSL Code | hsl(275, 94%, 51%) |
#970df7 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(151, 13, 247); }
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(275, 94%, 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 #970df7
RGB Code | Hex Code | Preview |
---|---|---|
rgb(151, 13, 247, 10%) | #970df71a | |
rgb(151, 13, 247, 20%) | #970df733 | |
rgb(151, 13, 247, 40%) | #970df74C | |
rgb(151, 13, 247, 60%) | #970df799 | |
rgb(151, 13, 247, 80%) | #970df7CC | |
rgb(151, 13, 247, 100%) | #970df7FF |
Saturated and desaturated colors of #970df7
HSL Code | Preview |
---|---|
hsl(275, 10%, 51%) | |
hsl(275, 20%, 51%) | |
hsl(275, 40%, 51%) | |
hsl(275, 60%, 51%) | |
hsl(275, 80%, 51%) | |
hsl(275, 100%, 51%) |
#970df7 Color Usage In CSS
body { color: #970df7; } p { color: rgb(151, 13, 247); } header { border-bottom:1px solid #970df7; }