How it works
Convert each channel 0–255 to two hex digits and join them: 52 → 34, 120 → 78, 246 → F6 → #3478F6.
Check readability
Test the color as text on a background with the color contrast checker.
Other conversions
HEX to RGB · HEX to HSL · HSL to HEX · RGB to CMYK · CMYK to RGB · HEX to OKLCH · OKLCH to HEX · CSS color names