OKLCH to HEX: #FE9A00
Also known as: Tailwind amber-500
Result
oklch(0.77241 0.17280 65.367) → #FE9A00
Values are shown at full precision, so converting back gives exactly #fe9a00. 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.77241 0.17280 65.367)
2. OKLCH → Oklab
a = C·cos H = 0.07202 b = C·sin H = 0.15707
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.834853 m′ = L − 0.1056·a − 0.0639·b = 0.754777 s′ = L − 0.0895·a − 1.2915·b = 0.563106
4. cube
l = 0.834853³ = 0.581876 m = 0.754777³ = 0.429988 s = 0.563106³ = 0.178554
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.991120 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.323147 B = −0.0042·l − 0.7034·m + 1.7076·s = -0.000002
6. linear → sRGB, × 255
R = 0.99609 × 255 = 254.00 → 254 G = 0.60393 × 255 = 154.00 → 154 B = 0.00000 × 255 = 0.00 → 0
7. RGB → HEX
#FE9A00
All formats
- HEX
- #fe9a00
- RGB
- rgb(254 154 0)
- RGB (legacy)
- rgb(254, 154, 0)
- HSL
- hsl(36.38 100.00% 49.80%) → hsl(36 100% 50%)
- HWB
- hwb(36 0% 0%)
- OKLCH
- oklch(0.772 0.173 65.4) · oklch(77.2% 0.173 65.4)
- OKLab
- oklab(0.772 0.072 0.157)
- Lab (D50)
- lab(73.03 32.55 77.57)
- LCH (D50)
- lch(73.03 84.12 67.24)
- Display P3
- color(display-p3 0.9417 0.6224 0.2218)
- Linear sRGB
- color(srgb-linear 0.9911 0.3231 0.0000)
Gamut: sRGB and Display P3
#FE9A00 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.173 and Display P3 reaches 0.198; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #fe9a00;
color: rgb(254 154 0);
color: hsl(36 100% 50%);
color: oklch(0.772 0.173 65.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.772 0.173 65.4);
}
/* arbitrary values */
class="text-[#fe9a00] bg-[oklch(0.772_0.173_65.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9417 0.6224 0.2218); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #fe9a00 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 amber-500#F59E0B
- orange#FFA500
- darkorange#FF8C00
- v3 orange-400#FB923C
- orange-400#FF8904
- sandybrown#F4A460
- yellow-500#F0B100
- goldenrod#DAA520
Lighter and darker, same hue and chroma
- #FFAD30 · oklch(0.832 0.173 65.4) · ΔL +0.06
- #E98700 · oklch(0.712 0.173 65.4) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?