#f8f8f8 Color
Color Codes | |
---|---|
Hex Code | #f8f8f8 |
RGB Code | rgb(248, 248, 248) |
HSL Code | hsl(0, 0%, 97%) |
#f8f8f8 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(248, 248, 248); }
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(0, 0%, 97%); }
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 #f8f8f8
RGB Code | Hex Code | Preview |
---|---|---|
rgb(248, 248, 248, 10%) | #f8f8f81a | |
rgb(248, 248, 248, 20%) | #f8f8f833 | |
rgb(248, 248, 248, 40%) | #f8f8f84C | |
rgb(248, 248, 248, 60%) | #f8f8f899 | |
rgb(248, 248, 248, 80%) | #f8f8f8CC | |
rgb(248, 248, 248, 100%) | #f8f8f8FF |
Saturated and desaturated colors of #f8f8f8
HSL Code | Preview |
---|---|
hsl(0, 10%, 97%) | |
hsl(0, 20%, 97%) | |
hsl(0, 40%, 97%) | |
hsl(0, 60%, 97%) | |
hsl(0, 80%, 97%) | |
hsl(0, 100%, 97%) |
#f8f8f8 Color Usage In CSS
body { color: #f8f8f8; } p { color: rgb(248, 248, 248); } header { border-bottom:1px solid #f8f8f8; }