#4a0755 Color
Color Codes | |
---|---|
Hex Code | #4a0755 |
RGB Code | rgb(74, 07, 85) |
HSL Code | hsl(292, 85%, 18%) |
#4a0755 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(74, 07, 85); }
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(292, 85%, 18%); }
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 #4a0755
RGB Code | Hex Code | Preview |
---|---|---|
rgb(74, 07, 85, 10%) | #4a07551a | |
rgb(74, 07, 85, 20%) | #4a075533 | |
rgb(74, 07, 85, 40%) | #4a07554C | |
rgb(74, 07, 85, 60%) | #4a075599 | |
rgb(74, 07, 85, 80%) | #4a0755CC | |
rgb(74, 07, 85, 100%) | #4a0755FF |
Saturated and desaturated colors of #4a0755
HSL Code | Preview |
---|---|
hsl(292, 10%, 18%) | |
hsl(292, 20%, 18%) | |
hsl(292, 40%, 18%) | |
hsl(292, 60%, 18%) | |
hsl(292, 80%, 18%) | |
hsl(292, 100%, 18%) |
#4a0755 Color Usage In CSS
body { color: #4a0755; } p { color: rgb(74, 07, 85); } header { border-bottom:1px solid #4a0755; }