#9c12fb Color
Color Codes | |
---|---|
Hex Code | #9c12fb |
RGB Code | rgb(156, 18, 251) |
HSL Code | hsl(276, 97%, 53%) |
#9c12fb Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(156, 18, 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(276, 97%, 53%); }
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 #9c12fb
RGB Code | Hex Code | Preview |
---|---|---|
rgb(156, 18, 251, 10%) | #9c12fb1a | |
rgb(156, 18, 251, 20%) | #9c12fb33 | |
rgb(156, 18, 251, 40%) | #9c12fb4C | |
rgb(156, 18, 251, 60%) | #9c12fb99 | |
rgb(156, 18, 251, 80%) | #9c12fbCC | |
rgb(156, 18, 251, 100%) | #9c12fbFF |
Saturated and desaturated colors of #9c12fb
HSL Code | Preview |
---|---|
hsl(276, 10%, 53%) | |
hsl(276, 20%, 53%) | |
hsl(276, 40%, 53%) | |
hsl(276, 60%, 53%) | |
hsl(276, 80%, 53%) | |
hsl(276, 100%, 53%) |
#9c12fb Color Usage In CSS
body { color: #9c12fb; } p { color: rgb(156, 18, 251); } header { border-bottom:1px solid #9c12fb; }