Design
Color Utility
Convert HEX, RGB, HSL colors and check WCAG contrast ratio for accessibility.
Color Conversion
HEX
#007BFF
RGB
rgb(0, 123, 255)
HSL
hsl(211, 100%, 50%)
Contrast Checker (WCAG)
Contrast Ratio 21.00
Normal Text
AA (4.5:1)
AAA (7.0:1)
Large Text
AA (3.0:1)
AAA (4.5:1)
Preview
The quick brown fox jumps over the lazy dog.
Color Converter and Contrast Checker
Design and frontend work often moves between HEX, RGB, and HSL color formats. This tool converts color values and helps check contrast between foreground and background colors so UI text and controls remain readable.
Common use cases
- Convert CSS colors: Move between HEX, RGB, and HSL when implementing designs.
- Check readability: Compare text and background colors before shipping UI changes.
- Create color variations: Use HSL to adjust lightness or saturation for hover states, borders, and subtle backgrounds.
Accessibility note
Color contrast affects readability, especially on mobile screens and bright displays. Do not rely on color alone to communicate state; combine color with text, icons, labels, or layout cues.