inlined get_page_color