This color is #f00 which is equivalent to (1, 0, 0,)
This color is #ff0000 but is still quivalent to (1, 0, 0,)
Although that yes, two and six digit hex codes for numbers refer to different palettes,
they are still the exact same color and could even be represented in something as
simple as a three-bit palette allowing only eight colors.