11 Colour Flashcards

1
Q

How do you represent RGB values?

A

color: rgb(100,100,100)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you represent hex codes?

A

color: #ee3e80
0 to F

it’s RGB still

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When you don’t specify a background it is white by default

t or f

A

F

it’s transparent

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What’s the difference between RGB and CMYK?

A

RGB is additive (light, screns) vs CMYK subtractive (ink)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Do you need the % symbols in:

hsla(0,100%,100%,0.5)

A

yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly