#120c45 Color
Color Codes | |
---|---|
Hex Code | #120c45 |
RGB Code | rgb(18, 12, 69) |
HSL Code | hsl(246, 70%, 16%) |
#120c45 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(18, 12, 69); }
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(246, 70%, 16%); }
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 #120c45
RGB Code | Hex Code | Preview |
---|---|---|
rgb(18, 12, 69, 10%) | #120c451a | |
rgb(18, 12, 69, 20%) | #120c4533 | |
rgb(18, 12, 69, 40%) | #120c454C | |
rgb(18, 12, 69, 60%) | #120c4599 | |
rgb(18, 12, 69, 80%) | #120c45CC | |
rgb(18, 12, 69, 100%) | #120c45FF |
Saturated and desaturated colors of #120c45
HSL Code | Preview |
---|---|
hsl(246, 10%, 16%) | |
hsl(246, 20%, 16%) | |
hsl(246, 40%, 16%) | |
hsl(246, 60%, 16%) | |
hsl(246, 80%, 16%) | |
hsl(246, 100%, 16%) |
#120c45 Color Usage In CSS
body { color: #120c45; } p { color: rgb(18, 12, 69); } header { border-bottom:1px solid #120c45; }