HEX to RGB: #F4A460

Also known as: CSS sandybrown

Result

#F4A460 → rgb(244 164 96)

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. 1. HEX → pairs

    #F4A460 → F4 | A4 | 60
  2. 2. base 16 → base 10

    R = F4₁₆ = 15×16 + 4 = 244
    G = A4₁₆ = 10×16 + 4 = 164
    B = 60₁₆ = 6×16 + 0 = 96
  3. 3. RGB

    rgb(244 164 96)

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).

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

All converters →

Guides: What is OKLCH?