RGB to HEX: #F97316
Also known as: Tailwind v3 orange-500
Result
rgb(249 115 22) → #F97316
Values are shown at full precision, so converting back gives exactly #f97316. The rounded form is what you normally paste into CSS.
Step-by-step math
Every number below is computed from the input, nothing is looked up.
1. base 10 → base 16
R = 249 = 15×16 + 9 → F9 G = 115 = 7×16 + 3 → 73 B = 22 = 1×16 + 6 → 16
2. pairs → HEX
F9 73 16 → #F97316
All formats
- HEX
- #f97316
- RGB
- rgb(249 115 22)
- RGB (legacy)
- rgb(249, 115, 22)
- HSL
- hsl(24.58 94.98% 53.14%) → hsl(25 95% 53%)
- HWB
- hwb(25 9% 2%)
- OKLCH
- oklch(0.705 0.187 47.6) · oklch(70.5% 0.187 47.6)
- OKLab
- oklab(0.705 0.126 0.138)
- Lab (D50)
- lab(64.50 49.37 68.66)
- LCH (D50)
- lch(64.50 84.57 54.29)
- Display P3
- color(display-p3 0.9111 0.4814 0.2088)
- Linear sRGB
- color(srgb-linear 0.9473 0.1714 0.0080)
Gamut: sRGB and Display P3
#F97316 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.193 and Display P3 reaches 0.219; this color uses 97% of the sRGB chroma available.
CSS snippets
.element {
color: #f97316;
color: rgb(249 115 22);
color: hsl(25 95% 53%);
color: oklch(0.705 0.187 47.6);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.705 0.187 47.6);
}
/* arbitrary values */
class="text-[#f97316] bg-[oklch(0.705_0.187_47.6)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9111 0.4814 0.2088); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #f97316 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- orange-500#FF6900
- coral#FF7F50
- amber-600#E17100
- orange-400#FF8904
- tomato#FF6347
- darkorange#FF8C00
- v3 amber-600#D97706
- v3 orange-600#EA580C
Lighter and darker, same hue and chroma
- #FF8734 · oklch(0.765 0.187 47.6) · ΔL +0.06
- #E45F00 · oklch(0.645 0.187 47.6) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?