#0cf281 Color
Color Codes | |
---|---|
Hex Code | #0cf281 |
RGB Code | rgb(12, 242, 129) |
HSL Code | hsl(151, 91%, 50%) |
#0cf281 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(12, 242, 129); }
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(151, 91%, 50%); }
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 #0cf281
RGB Code | Hex Code | Preview |
---|---|---|
rgb(12, 242, 129, 10%) | #0cf2811a | |
rgb(12, 242, 129, 20%) | #0cf28133 | |
rgb(12, 242, 129, 40%) | #0cf2814C | |
rgb(12, 242, 129, 60%) | #0cf28199 | |
rgb(12, 242, 129, 80%) | #0cf281CC | |
rgb(12, 242, 129, 100%) | #0cf281FF |
Saturated and desaturated colors of #0cf281
HSL Code | Preview |
---|---|
hsl(151, 10%, 50%) | |
hsl(151, 20%, 50%) | |
hsl(151, 40%, 50%) | |
hsl(151, 60%, 50%) | |
hsl(151, 80%, 50%) | |
hsl(151, 100%, 50%) |
#0cf281 Color Usage In CSS
body { color: #0cf281; } p { color: rgb(12, 242, 129); } header { border-bottom:1px solid #0cf281; }