Rgb-colors

https://www.codecademy.com/paths/front-end-engineer-career-path/tracks/fecp-22-improved-styling-with-css/modules/wdcp-22-learn-css-colors/lessons/color/exercises/rgb-colors
how do we know the hex and rgb numbers for colors?

We look them up from tables/charts.
For Example,