HEX to HSL: #FDE68A

Also known as: Tailwind v3 amber-200

Result

#FDE68A → hsl(48 97% 77%)

Values are shown at full precision, so converting back gives exactly #fde68a. 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.9020
    B = 0.5412
  2. 2. max, min, Δ

    max = 0.9922
    min = 0.5412
    Δ = max − min = 0.4510
  3. 3. L

    L = (max + min) / 2 = 0.7667 = 76.67%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.9664 = 96.64%
  5. 5. H

    max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.9020 − 0.5412) / 0.4510) mod 6) = 48.00°
  6. 6. HSL

    hsl(48.00 96.64% 76.67%)

All formats

HEX
#fde68a
RGB
rgb(253 230 138)
RGB (legacy)
rgb(253, 230, 138)
HSL
hsl(48.00 96.64% 76.67%) → hsl(48 97% 77%)
HWB
hwb(48 54% 1%)
OKLCH
oklch(0.924 0.115 95.7) · oklch(92.4% 0.115 95.7)
OKLab
oklab(0.924 -0.012 0.115)
Lab (D50)
lab(91.74 -0.63 47.60)
LCH (D50)
lch(91.74 47.60 90.76)
Display P3
color(display-p3 0.9769 0.9051 0.5887)
Linear sRGB
color(srgb-linear 0.9823 0.7913 0.2542)

Gamut: sRGB and Display P3

#FDE68A is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.125 and Display P3 reaches 0.150; this color uses 92% of the sRGB chroma available.

CSS snippets

.element {
  color: #fde68a;
  color: rgb(253 230 138);
  color: hsl(48 97% 77%);
  color: oklch(0.924 0.115 95.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.924 0.115 95.7);
}
/* arbitrary values */
class="text-[#fde68a] bg-[oklch(0.924_0.115_95.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9769 0.9051 0.5887); }
}

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

  • #FFFA9E · oklch(0.984 0.115 95.7) · ΔL +0.06
  • #E9D277 · oklch(0.864 0.115 95.7) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?