+ 1
HTML colours
how can i mix up colors to come up with yellow
4 Réponses
+ 11
color:yellow; (~_~)
+ 3
You could also use Hex colors e.g. #FFFF00 or RGB colours e.g. RGB(255,255,0) for yellow.
+ 1
Yellow is a mix up of red and green ( in screens RGB system )... if you want to set a particular tint of yellow.
To 'mix-up' color, you can also use the HSL color system, where Hue determine color ( yellow is 60 ) on a circle ( red is 0 and 360, green 120 and blue 240 ), in addition to Saturation and Luminosity percentage values ( S=0% grayscale, S=100% full color, L=0% black, L=100% white and L=50% pure color )... so yellow is:
hsl(60,100%,50%)
... and can be useful for fine color tuning ;)
As for the rgba notation, you could also use hsl with alpha channel with 'hsla()'...
Don't know if hexadecimal notation today support a fourth value to set an alpha channel: if someone know?
0
#FFFF00