#662ab9 Color
Color Codes | |
---|---|
Hex Code | #662ab9 |
RGB Code | rgb(102, 42, 185) |
HSL Code | hsl(265, 63%, 45%) |
#662ab9 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(102, 42, 185); }
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(265, 63%, 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 #662ab9
RGB Code | Hex Code | Preview |
---|---|---|
rgb(102, 42, 185, 10%) | #662ab91a | |
rgb(102, 42, 185, 20%) | #662ab933 | |
rgb(102, 42, 185, 40%) | #662ab94C | |
rgb(102, 42, 185, 60%) | #662ab999 | |
rgb(102, 42, 185, 80%) | #662ab9CC | |
rgb(102, 42, 185, 100%) | #662ab9FF |
Saturated and desaturated colors of #662ab9
HSL Code | Preview |
---|---|
hsl(265, 10%, 45%) | |
hsl(265, 20%, 45%) | |
hsl(265, 40%, 45%) | |
hsl(265, 60%, 45%) | |
hsl(265, 80%, 45%) | |
hsl(265, 100%, 45%) |
#662ab9 Color Usage In CSS
body { color: #662ab9; } p { color: rgb(102, 42, 185); } header { border-bottom:1px solid #662ab9; }