You're seeing different colors because of the visual perception—even with the same hex code, text can appear different due to font weight, size, and anti-aliasing. Bold or large text has denser pixels, making it look darker. Browsers also render fonts differently based on size and weight, affecting perceived color.
It's an optical illusion, not a code issue.