#702acc Color
Color Codes | |
---|---|
Hex Code | #702acc |
RGB Code | rgb(112, 42, 204) |
HSL Code | hsl(266, 66%, 48%) |
#702acc Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(112, 42, 204); }
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(266, 66%, 48%); }
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 #702acc
RGB Code | Hex Code | Preview |
---|---|---|
rgb(112, 42, 204, 10%) | #702acc1a | |
rgb(112, 42, 204, 20%) | #702acc33 | |
rgb(112, 42, 204, 40%) | #702acc4C | |
rgb(112, 42, 204, 60%) | #702acc99 | |
rgb(112, 42, 204, 80%) | #702accCC | |
rgb(112, 42, 204, 100%) | #702accFF |
Saturated and desaturated colors of #702acc
HSL Code | Preview |
---|---|
hsl(266, 10%, 48%) | |
hsl(266, 20%, 48%) | |
hsl(266, 40%, 48%) | |
hsl(266, 60%, 48%) | |
hsl(266, 80%, 48%) | |
hsl(266, 100%, 48%) |
#702acc Color Usage In CSS
body { color: #702acc; } p { color: rgb(112, 42, 204); } header { border-bottom:1px solid #702acc; }