b9dfcb2890
- Removed duplicate hexToRgb and rgbToAnsi functions that were only used in foreground color conversion. - Reused colorToAnsi for background colors by applying ANSI code substitution instead of reimplementing the full logic.