HSL to HEX: #FAFAD2

Also known as: CSS lightgoldenrodyellow

Result

hsl(60.00 80.00% 90.20%) → #FAFAD2

Values are shown at full precision, so converting back gives exactly #fafad2. 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. input

    H = 60.00°, S = 80.00%, L = 90.20%
  2. 2. C

    C = (1 − |2L − 1|) × S = 0.15680
  3. 3. X

    X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.15680   (H / 60° = 1.0000, sector 1)
  4. 4. m

    m = L − C / 2 = 0.82360
  5. 5. (R′, G′, B′) + m

    (R′, G′, B′) = (0.15680, 0.15680, 0.00000)
    R = round((0.15680 + 0.82360) × 255) = 250
    G = round((0.15680 + 0.82360) × 255) = 250
    B = round((0.00000 + 0.82360) × 255) = 210
  6. 6. RGB → HEX

    #FAFAD2

All formats

HEX
#fafad2
RGB
rgb(250 250 210)
RGB (legacy)
rgb(250, 250, 210)
HSL
hsl(60.00 80.00% 90.20%) → hsl(60 80% 90%)
HWB
hwb(60 82% 2%)
OKLCH
oklch(0.975 0.052 107.3) · oklch(97.5% 0.052 107.3)
OKLab
oklab(0.975 -0.015 0.049)
Lab (D50)
lab(97.51 -4.80 19.29)
LCH (D50)
lch(97.51 19.88 103.98)
Display P3
color(display-p3 0.9804 0.9804 0.8392)
Linear sRGB
color(srgb-linear 0.9560 0.9560 0.6445)

Gamut: sRGB and Display P3

#FAFAD2 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.117 and Display P3 reaches 0.122; this color uses 44% of the sRGB chroma available.

CSS snippets

.element {
  color: #fafad2;
  color: rgb(250 250 210);
  color: hsl(60 80% 90%);
  color: oklch(0.975 0.052 107.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.975 0.052 107.3);
}
/* arbitrary values */
class="text-[#fafad2] bg-[oklch(0.975_0.052_107.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9804 0.9804 0.8392); }
}

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

  • #FFFFDA · oklch(1.000 0.052 107.3) · ΔL +0.06
  • #E6E6BF · oklch(0.915 0.052 107.3) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?