#f2f2dd Color
Color Codes | |
---|---|
Hex Code | #f2f2dd |
RGB Code | rgb(242, 242, 221) |
HSL Code | hsl(60, 45%, 91%) |
#f2f2dd Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(242, 242, 221); }
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, 45%, 91%); }
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 #f2f2dd
RGB Code | Hex Code | Preview |
---|---|---|
rgb(242, 242, 221, 10%) | #f2f2dd1a | |
rgb(242, 242, 221, 20%) | #f2f2dd33 | |
rgb(242, 242, 221, 40%) | #f2f2dd4C | |
rgb(242, 242, 221, 60%) | #f2f2dd99 | |
rgb(242, 242, 221, 80%) | #f2f2ddCC | |
rgb(242, 242, 221, 100%) | #f2f2ddFF |
Saturated and desaturated colors of #f2f2dd
HSL Code | Preview |
---|---|
hsl(60, 10%, 91%) | |
hsl(60, 20%, 91%) | |
hsl(60, 40%, 91%) | |
hsl(60, 60%, 91%) | |
hsl(60, 80%, 91%) | |
hsl(60, 100%, 91%) |
#f2f2dd Color Usage In CSS
body { color: #f2f2dd; } p { color: rgb(242, 242, 221); } header { border-bottom:1px solid #f2f2dd; }