#6b3ba8 Color
Color Codes | |
---|---|
Hex Code | #6b3ba8 |
RGB Code | rgb(107, 59, 168) |
HSL Code | hsl(266, 48%, 45%) |
#6b3ba8 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(107, 59, 168); }
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, 48%, 45%); }
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 #6b3ba8
RGB Code | Hex Code | Preview |
---|---|---|
rgb(107, 59, 168, 10%) | #6b3ba81a | |
rgb(107, 59, 168, 20%) | #6b3ba833 | |
rgb(107, 59, 168, 40%) | #6b3ba84C | |
rgb(107, 59, 168, 60%) | #6b3ba899 | |
rgb(107, 59, 168, 80%) | #6b3ba8CC | |
rgb(107, 59, 168, 100%) | #6b3ba8FF |
Saturated and desaturated colors of #6b3ba8
HSL Code | Preview |
---|---|
hsl(266, 10%, 45%) | |
hsl(266, 20%, 45%) | |
hsl(266, 40%, 45%) | |
hsl(266, 60%, 45%) | |
hsl(266, 80%, 45%) | |
hsl(266, 100%, 45%) |
#6b3ba8 Color Usage In CSS
body { color: #6b3ba8; } p { color: rgb(107, 59, 168); } header { border-bottom:1px solid #6b3ba8; }