11 Colour Flashcards
1
Q
How do you represent RGB values?
A
color: rgb(100,100,100)
2
Q
How do you represent hex codes?
A
color: #ee3e80
0 to F
it’s RGB still
3
Q
When you don’t specify a background it is white by default
t or f
A
F
it’s transparent
4
Q
What’s the difference between RGB and CMYK?
A
RGB is additive (light, screns) vs CMYK subtractive (ink)
5
Q
How do you add transparency to RGB colours? (2 ways)
A
rgba(0,0,0,0.5)
or add this:
opacity: 0.5;
opacity is between 0 and 1
6
Q
How do you represent hsl?
How do you add alpha? (2 ways)
A
hsl(0,0%,78%)
hue is 360 degrees
saturation is between 0 and 100%
lightness is between 0
and 100%
hsla(0,100%,100%,0.5)
or add this:
opacity: 0.5;
7
Q
Do you need the % symbols in:
hsla(0,100%,100%,0.5)
A
yes