OKLCH to HEX: #F54900
Also known as: Tailwind orange-600
Result
oklch(0.64713 0.21733 36.851) → #F54900
Values are shown at full precision, so converting back gives exactly #f54900. 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. input
oklch(0.64713 0.21733 36.851)
2. OKLCH → Oklab
a = C·cos H = 0.17391 b = C·sin H = 0.13034
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.744184 m′ = L − 0.1056·a − 0.0639·b = 0.620449 s′ = L − 0.0895·a − 1.2915·b = 0.463235
4. cube
l = 0.744184³ = 0.412136 m = 0.620449³ = 0.238847 s = 0.463235³ = 0.099404
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.913097 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.066634 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.000005
6. linear → sRGB, × 255
R = 0.96078 × 255 = 245.00 → 245 G = 0.28629 × 255 = 73.00 → 73 B = 0.00007 × 255 = 0.02 → 0
7. RGB → HEX
#F54900
All formats
- HEX
- #f54900
- RGB
- rgb(245 73 0)
- RGB (legacy)
- rgb(245, 73, 0)
- HSL
- hsl(17.88 100.00% 48.04%) → hsl(18 100% 48%)
- HWB
- hwb(18 0% 4%)
- OKLCH
- oklch(0.647 0.217 36.9) · oklch(64.7% 0.217 36.9)
- OKLab
- oklab(0.647 0.174 0.130)
- Lab (D50)
- lab(57.17 64.79 69.07)
- LCH (D50)
- lch(57.17 94.70 46.83)
- Display P3
- color(display-p3 0.8875 0.3402 0.1535)
- Linear sRGB
- color(srgb-linear 0.9131 0.0666 0.0000)
Gamut: sRGB and Display P3
#F54900 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.217 and Display P3 reaches 0.245; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #f54900;
color: rgb(245 73 0);
color: hsl(18 100% 48%);
color: oklch(0.647 0.217 36.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.647 0.217 36.9);
}
/* arbitrary values */
class="text-[#f54900] bg-[oklch(0.647_0.217_36.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.8875 0.3402 0.1535); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #f54900 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- orangered#FF4500
- v3 orange-600#EA580C
- v3 red-500#EF4444
- red-500#FB2C36
- red#FF0000
- tomato#FF6347
- orange-500#FF6900
- red-600#E7000B
Lighter and darker, same hue and chroma
- #FF5F28 · oklch(0.707 0.217 36.9) · ΔL +0.06
- #DF3100 · oklch(0.587 0.217 36.9) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?