#f0d73f Color
Color Codes | |
---|---|
Hex Code | #f0d73f |
RGB Code | rgb(240, 215, 63) |
HSL Code | hsl(52, 86%, 59%) |
#f0d73f Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(240, 215, 63); }
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(52, 86%, 59%); }
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 #f0d73f
RGB Code | Hex Code | Preview |
---|---|---|
rgb(240, 215, 63, 10%) | #f0d73f1a | |
rgb(240, 215, 63, 20%) | #f0d73f33 | |
rgb(240, 215, 63, 40%) | #f0d73f4C | |
rgb(240, 215, 63, 60%) | #f0d73f99 | |
rgb(240, 215, 63, 80%) | #f0d73fCC | |
rgb(240, 215, 63, 100%) | #f0d73fFF |
Saturated and desaturated colors of #f0d73f
HSL Code | Preview |
---|---|
hsl(52, 10%, 59%) | |
hsl(52, 20%, 59%) | |
hsl(52, 40%, 59%) | |
hsl(52, 60%, 59%) | |
hsl(52, 80%, 59%) | |
hsl(52, 100%, 59%) |
#f0d73f Color Usage In CSS
body { color: #f0d73f; } p { color: rgb(240, 215, 63); } header { border-bottom:1px solid #f0d73f; }