#d02042 Color
Color Codes | |
---|---|
Hex Code | #d02042 |
RGB Code | rgb(208, 32, 66) |
HSL Code | hsl(348, 73%, 47%) |
#d02042 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(208, 32, 66); }
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(348, 73%, 47%); }
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 #d02042
RGB Code | Hex Code | Preview |
---|---|---|
rgb(208, 32, 66, 10%) | #d020421a | |
rgb(208, 32, 66, 20%) | #d0204233 | |
rgb(208, 32, 66, 40%) | #d020424C | |
rgb(208, 32, 66, 60%) | #d0204299 | |
rgb(208, 32, 66, 80%) | #d02042CC | |
rgb(208, 32, 66, 100%) | #d02042FF |
Saturated and desaturated colors of #d02042
HSL Code | Preview |
---|---|
hsl(348, 10%, 47%) | |
hsl(348, 20%, 47%) | |
hsl(348, 40%, 47%) | |
hsl(348, 60%, 47%) | |
hsl(348, 80%, 47%) | |
hsl(348, 100%, 47%) |
#d02042 Color Usage In CSS
body { color: #d02042; } p { color: rgb(208, 32, 66); } header { border-bottom:1px solid #d02042; }