#6a2d46 Color
Color Codes | |
---|---|
Hex Code | #6a2d46 |
RGB Code | rgb(106, 45, 70) |
HSL Code | hsl(335, 40%, 30%) |
#6a2d46 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(106, 45, 70); }
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(335, 40%, 30%); }
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 #6a2d46
RGB Code | Hex Code | Preview |
---|---|---|
rgb(106, 45, 70, 10%) | #6a2d461a | |
rgb(106, 45, 70, 20%) | #6a2d4633 | |
rgb(106, 45, 70, 40%) | #6a2d464C | |
rgb(106, 45, 70, 60%) | #6a2d4699 | |
rgb(106, 45, 70, 80%) | #6a2d46CC | |
rgb(106, 45, 70, 100%) | #6a2d46FF |
Saturated and desaturated colors of #6a2d46
HSL Code | Preview |
---|---|
hsl(335, 10%, 30%) | |
hsl(335, 20%, 30%) | |
hsl(335, 40%, 30%) | |
hsl(335, 60%, 30%) | |
hsl(335, 80%, 30%) | |
hsl(335, 100%, 30%) |
#6a2d46 Color Usage In CSS
body { color: #6a2d46; } p { color: rgb(106, 45, 70); } header { border-bottom:1px solid #6a2d46; }