HEX to HSL: #F4A460
Also known as: CSS sandybrown
Result
#F4A460 → hsl(28 87% 67%)
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. RGB ÷ 255
R = 0.9569 G = 0.6431 B = 0.3765
2. max, min, Δ
max = 0.9569 min = 0.3765 Δ = max − min = 0.5804
3. L
L = (max + min) / 2 = 0.6667 = 66.67%
4. S
S = Δ / (1 − |2L − 1|) = 0.8706 = 87.06%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.6431 − 0.3765) / 0.5804) mod 6) = 27.57°
6. HSL
hsl(27.57 87.06% 66.67%)
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?