#f0e0a0 Color
Color Codes | |
---|---|
Hex Code | #f0e0a0 |
RGB Code | rgb(240, 224, 160) |
HSL Code | hsl(48, 73%, 78%) |
#f0e0a0 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(240, 224, 160); }
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(48, 73%, 78%); }
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 #f0e0a0
RGB Code | Hex Code | Preview |
---|---|---|
rgb(240, 224, 160, 10%) | #f0e0a01a | |
rgb(240, 224, 160, 20%) | #f0e0a033 | |
rgb(240, 224, 160, 40%) | #f0e0a04C | |
rgb(240, 224, 160, 60%) | #f0e0a099 | |
rgb(240, 224, 160, 80%) | #f0e0a0CC | |
rgb(240, 224, 160, 100%) | #f0e0a0FF |
Saturated and desaturated colors of #f0e0a0
HSL Code | Preview |
---|---|
hsl(48, 10%, 78%) | |
hsl(48, 20%, 78%) | |
hsl(48, 40%, 78%) | |
hsl(48, 60%, 78%) | |
hsl(48, 80%, 78%) | |
hsl(48, 100%, 78%) |
#f0e0a0 Color Usage In CSS
body { color: #f0e0a0; } p { color: rgb(240, 224, 160); } header { border-bottom:1px solid #f0e0a0; }