#0fa059 Color
Color Codes | |
---|---|
Hex Code | #0fa059 |
RGB Code | rgb(15, 160, 89) |
HSL Code | hsl(151, 83%, 34%) |
#0fa059 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(15, 160, 89); }
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(151, 83%, 34%); }
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 #0fa059
RGB Code | Hex Code | Preview |
---|---|---|
rgb(15, 160, 89, 10%) | #0fa0591a | |
rgb(15, 160, 89, 20%) | #0fa05933 | |
rgb(15, 160, 89, 40%) | #0fa0594C | |
rgb(15, 160, 89, 60%) | #0fa05999 | |
rgb(15, 160, 89, 80%) | #0fa059CC | |
rgb(15, 160, 89, 100%) | #0fa059FF |
Saturated and desaturated colors of #0fa059
HSL Code | Preview |
---|---|
hsl(151, 10%, 34%) | |
hsl(151, 20%, 34%) | |
hsl(151, 40%, 34%) | |
hsl(151, 60%, 34%) | |
hsl(151, 80%, 34%) | |
hsl(151, 100%, 34%) |
#0fa059 Color Usage In CSS
body { color: #0fa059; } p { color: rgb(15, 160, 89); } header { border-bottom:1px solid #0fa059; }