#6b55cc Color
Color Codes | |
---|---|
Hex Code | #6b55cc |
RGB Code | rgb(107, 85, 204) |
HSL Code | hsl(251, 54%, 57%) |
#6b55cc Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(107, 85, 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(251, 54%, 57%); }
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 #6b55cc
RGB Code | Hex Code | Preview |
---|---|---|
rgb(107, 85, 204, 10%) | #6b55cc1a | |
rgb(107, 85, 204, 20%) | #6b55cc33 | |
rgb(107, 85, 204, 40%) | #6b55cc4C | |
rgb(107, 85, 204, 60%) | #6b55cc99 | |
rgb(107, 85, 204, 80%) | #6b55ccCC | |
rgb(107, 85, 204, 100%) | #6b55ccFF |
Saturated and desaturated colors of #6b55cc
HSL Code | Preview |
---|---|
hsl(251, 10%, 57%) | |
hsl(251, 20%, 57%) | |
hsl(251, 40%, 57%) | |
hsl(251, 60%, 57%) | |
hsl(251, 80%, 57%) | |
hsl(251, 100%, 57%) |
#6b55cc Color Usage In CSS
body { color: #6b55cc; } p { color: rgb(107, 85, 204); } header { border-bottom:1px solid #6b55cc; }