#514fa7 Color
Color Codes | |
---|---|
Hex Code | #514fa7 |
RGB Code | rgb(81, 79, 167) |
HSL Code | hsl(241, 36%, 48%) |
#514fa7 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(81, 79, 167); }
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(241, 36%, 48%); }
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 #514fa7
RGB Code | Hex Code | Preview |
---|---|---|
rgb(81, 79, 167, 10%) | #514fa71a | |
rgb(81, 79, 167, 20%) | #514fa733 | |
rgb(81, 79, 167, 40%) | #514fa74C | |
rgb(81, 79, 167, 60%) | #514fa799 | |
rgb(81, 79, 167, 80%) | #514fa7CC | |
rgb(81, 79, 167, 100%) | #514fa7FF |
Saturated and desaturated colors of #514fa7
HSL Code | Preview |
---|---|
hsl(241, 10%, 48%) | |
hsl(241, 20%, 48%) | |
hsl(241, 40%, 48%) | |
hsl(241, 60%, 48%) | |
hsl(241, 80%, 48%) | |
hsl(241, 100%, 48%) |
#514fa7 Color Usage In CSS
body { color: #514fa7; } p { color: rgb(81, 79, 167); } header { border-bottom:1px solid #514fa7; }