RGB to HEX: #F59E0B
Also known as: Tailwind v3 amber-500
Result
rgb(245 158 11) → #F59E0B
Values are shown at full precision, so converting back gives exactly #f59e0b. 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 = 245 = 15×16 + 5 → F5 G = 158 = 9×16 + 14 → 9E B = 11 = 0×16 + 11 → 0B
2. pairs → HEX
F5 9E 0B → #F59E0B
All formats
- HEX
- #f59e0b
- RGB
- rgb(245 158 11)
- RGB (legacy)
- rgb(245, 158, 11)
- HSL
- hsl(37.69 92.13% 50.20%) → hsl(38 92% 50%)
- HWB
- hwb(38 4% 4%)
- OKLCH
- oklch(0.769 0.165 70.1) · oklch(76.9% 0.165 70.1)
- OKLab
- oklab(0.769 0.056 0.155)
- Lab (D50)
- lab(72.79 26.93 75.43)
- LCH (D50)
- lch(72.79 80.10 70.35)
- Display P3
- color(display-p3 0.9122 0.6349 0.2305)
- Linear sRGB
- color(srgb-linear 0.9131 0.3419 0.0033)
Gamut: sRGB and Display P3
#F59E0B is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.166 and Display P3 reaches 0.191; this color uses 99% of the sRGB chroma available.
CSS snippets
.element {
color: #f59e0b;
color: rgb(245 158 11);
color: hsl(38 92% 50%);
color: oklch(0.769 0.165 70.1);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.769 0.165 70.1);
}
/* arbitrary values */
class="text-[#f59e0b] bg-[oklch(0.769_0.165_70.1)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9122 0.6349 0.2305); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #f59e0b calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- amber-500#FE9A00
- orange#FFA500
- v3 orange-400#FB923C
- darkorange#FF8C00
- goldenrod#DAA520
- yellow-500#F0B100
- sandybrown#F4A460
- orange-400#FF8904
Lighter and darker, same hue and chroma
- #FFB133 · oklch(0.829 0.165 70.1) · ΔL +0.06
- #E18B00 · oklch(0.709 0.165 70.1) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?