#d6c050 Color
Color Codes | |
---|---|
Hex Code | #d6c050 |
RGB Code | rgb(214, 192, 80) |
HSL Code | hsl(50, 62%, 58%) |
#d6c050 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(214, 192, 80); }
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(50, 62%, 58%); }
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 #d6c050
RGB Code | Hex Code | Preview |
---|---|---|
rgb(214, 192, 80, 10%) | #d6c0501a | |
rgb(214, 192, 80, 20%) | #d6c05033 | |
rgb(214, 192, 80, 40%) | #d6c0504C | |
rgb(214, 192, 80, 60%) | #d6c05099 | |
rgb(214, 192, 80, 80%) | #d6c050CC | |
rgb(214, 192, 80, 100%) | #d6c050FF |
Saturated and desaturated colors of #d6c050
HSL Code | Preview |
---|---|
hsl(50, 10%, 58%) | |
hsl(50, 20%, 58%) | |
hsl(50, 40%, 58%) | |
hsl(50, 60%, 58%) | |
hsl(50, 80%, 58%) | |
hsl(50, 100%, 58%) |
#d6c050 Color Usage In CSS
body { color: #d6c050; } p { color: rgb(214, 192, 80); } header { border-bottom:1px solid #d6c050; }