#f9f86a Color
Color Codes | |
---|---|
Hex Code | #f9f86a |
RGB Code | rgb(249, 248, 106) |
HSL Code | hsl(60, 92%, 70%) |
#f9f86a Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(249, 248, 106); }
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(60, 92%, 70%); }
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 #f9f86a
RGB Code | Hex Code | Preview |
---|---|---|
rgb(249, 248, 106, 10%) | #f9f86a1a | |
rgb(249, 248, 106, 20%) | #f9f86a33 | |
rgb(249, 248, 106, 40%) | #f9f86a4C | |
rgb(249, 248, 106, 60%) | #f9f86a99 | |
rgb(249, 248, 106, 80%) | #f9f86aCC | |
rgb(249, 248, 106, 100%) | #f9f86aFF |
Saturated and desaturated colors of #f9f86a
HSL Code | Preview |
---|---|
hsl(60, 10%, 70%) | |
hsl(60, 20%, 70%) | |
hsl(60, 40%, 70%) | |
hsl(60, 60%, 70%) | |
hsl(60, 80%, 70%) | |
hsl(60, 100%, 70%) |
#f9f86a Color Usage In CSS
body { color: #f9f86a; } p { color: rgb(249, 248, 106); } header { border-bottom:1px solid #f9f86a; }