+ 1

HTML colours

how can i mix up colors to come up with yellow

24th Jan 2017, 6:28 PM
shawn
4 odpowiedzi
+ 11
color:yellow; (~_~)
24th Jan 2017, 6:44 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 3
You could also use Hex colors e.g. #FFFF00 or RGB colours e.g. RGB(255,255,0) for yellow.
24th Jan 2017, 6:52 PM
Jafca
Jafca - avatar
+ 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?
25th Jan 2017, 9:00 AM
visph
visph - avatar
0
#FFFF00
24th Jan 2017, 6:52 PM
Leonida17st
Leonida17st - avatar