HEX to HSL: #FDBA74

Also known as: Tailwind v3 orange-300

Result

#FDBA74 → hsl(31 97% 72%)

Values are shown at full precision, so converting back gives exactly #fdba74. 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. RGB ÷ 255

    R = 0.9922
    G = 0.7294
    B = 0.4549
  2. 2. max, min, Δ

    max = 0.9922
    min = 0.4549
    Δ = max − min = 0.5373
  3. 3. L

    L = (max + min) / 2 = 0.7235 = 72.35%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.9716 = 97.16%
  5. 5. H

    max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.7294 − 0.4549) / 0.5373) mod 6) = 30.66°
  6. 6. HSL

    hsl(30.66 97.16% 72.35%)

All formats

HEX
#fdba74
RGB
rgb(253 186 116)
RGB (legacy)
rgb(253, 186, 116)
HSL
hsl(30.66 97.16% 72.35%) → hsl(31 97% 72%)
HWB
hwb(31 45% 1%)
OKLCH
oklch(0.837 0.117 66.3) · oklch(83.7% 0.117 66.3)
OKLab
oklab(0.837 0.047 0.107)
Lab (D50)
lab(80.80 19.44 45.17)
LCH (D50)
lch(80.80 49.17 66.71)
Display P3
color(display-p3 0.9524 0.7402 0.4971)
Linear sRGB
color(srgb-linear 0.9823 0.4910 0.1746)

Gamut: sRGB and Display P3

#FDBA74 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.121 and Display P3 reaches 0.153; this color uses 96% of the sRGB chroma available.

CSS snippets

.element {
  color: #fdba74;
  color: rgb(253 186 116);
  color: hsl(31 97% 72%);
  color: oklch(0.837 0.117 66.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.837 0.117 66.3);
}
/* arbitrary values */
class="text-[#fdba74] bg-[oklch(0.837_0.117_66.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9524 0.7402 0.4971); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #fdba74 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

  • #FFCD87 · oklch(0.897 0.117 66.3) · ΔL +0.06
  • #E9A761 · oklch(0.777 0.117 66.3) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?