#402191 Color
Color Codes | |
---|---|
Hex Code | #402191 |
RGB Code | rgb(64, 33, 145) |
HSL Code | hsl(257, 63%, 35%) |
#402191 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(64, 33, 145); }
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(257, 63%, 35%); }
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 #402191
RGB Code | Hex Code | Preview |
---|---|---|
rgb(64, 33, 145, 10%) | #4021911a | |
rgb(64, 33, 145, 20%) | #40219133 | |
rgb(64, 33, 145, 40%) | #4021914C | |
rgb(64, 33, 145, 60%) | #40219199 | |
rgb(64, 33, 145, 80%) | #402191CC | |
rgb(64, 33, 145, 100%) | #402191FF |
Saturated and desaturated colors of #402191
HSL Code | Preview |
---|---|
hsl(257, 10%, 35%) | |
hsl(257, 20%, 35%) | |
hsl(257, 40%, 35%) | |
hsl(257, 60%, 35%) | |
hsl(257, 80%, 35%) | |
hsl(257, 100%, 35%) |
#402191 Color Usage In CSS
body { color: #402191; } p { color: rgb(64, 33, 145); } header { border-bottom:1px solid #402191; }