HSL to HEX: #F4A460
Also known as: CSS sandybrown
Result
hsl(27.57 87.06% 66.67%) → #F4A460
Values are shown at full precision, so converting back gives exactly #f4a460. 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
H = 27.57°, S = 87.06%, L = 66.67%
2. C
C = (1 − |2L − 1|) × S = 0.58034
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.26667 (H / 60° = 0.4595, sector 0)
4. m
m = L − C / 2 = 0.37653
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.58034, 0.26667, 0.00000) R = round((0.58034 + 0.37653) × 255) = 244 G = round((0.26667 + 0.37653) × 255) = 164 B = round((0.00000 + 0.37653) × 255) = 96
6. RGB → HEX
#F4A460
All formats
- HEX
- #f4a460
- RGB
- rgb(244 164 96)
- RGB (legacy)
- rgb(244, 164, 96)
- HSL
- hsl(27.57 87.06% 66.67%) → hsl(28 87% 67%)
- HWB
- hwb(28 38% 4%)
- OKLCH
- oklch(0.784 0.127 59.7) · oklch(78.4% 0.127 59.7)
- OKLab
- oklab(0.784 0.064 0.110)
- Lab (D50)
- lab(74.48 25.72 47.38)
- LCH (D50)
- lch(74.48 53.91 61.50)
- Display P3
- color(display-p3 0.9113 0.6568 0.4220)
- Linear sRGB
- color(srgb-linear 0.9047 0.3712 0.1170)
Gamut: sRGB and Display P3
#F4A460 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.153 and Display P3 reaches 0.193; this color uses 83% of the sRGB chroma available.
CSS snippets
.element {
color: #f4a460;
color: rgb(244 164 96);
color: hsl(28 87% 67%);
color: oklch(0.784 0.127 59.7);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.784 0.127 59.7);
}
/* arbitrary values */
class="text-[#f4a460] bg-[oklch(0.784_0.127_59.7)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9113 0.6568 0.4220); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #f4a460 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- lightsalmon#FFA07A
- v3 orange-400#FB923C
- v3 amber-500#F59E0B
- amber-500#FE9A00
- orange-300#FFB86A
- orange#FFA500
- v3 orange-300#FDBA74
- darksalmon#E9967A
Lighter and darker, same hue and chroma
- #FFB773 · oklch(0.844 0.127 59.7) · ΔL +0.06
- #E0914D · oklch(0.724 0.127 59.7) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?