Hex Color Converter
CSS color values
—
—
—
WCAG text contrast
Ratios use the WCAG 2.2 relative-luminance formula. AA requires 4.5:1 for normal text or 3:1 for large text.
vs White (#FFF)
—
vs Black (#000)
—
Worked example: convert #FF5733
This page is the interactive tool; the separate hex color reference guide explains the notation and formulas in depth.
| Representation | Verified result | How it was derived |
|---|---|---|
| Hex | #FF5733 | FF, 57, 33 are the red, green, and blue bytes. |
| RGB | rgb(255, 87, 51) | Base-16 pairs converted to decimal. |
| HSL | hsl(10.59 100% 60%) | sRGB converted with the CSS Color 4 HSL algorithm. |
| On white | 3.15:1 | Passes AA only for large text; fails AA for normal text. |
| On black | 6.66:1 | Passes AA for normal text; falls short of 7:1 AAA for normal text. |
Primary references: W3C CSS Color 4 hex notation and WCAG 2.2 Contrast (Minimum). Values were recalculated and covered by automated tests on 17 July 2026.