HEX to HSL: #FAFAD2
Also known as: CSS lightgoldenrodyellow
Result
#FAFAD2 → hsl(60 80% 90%)
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. RGB ÷ 255
R = 0.9804 G = 0.9804 B = 0.8235
2. max, min, Δ
max = 0.9804 min = 0.8235 Δ = max − min = 0.1569
3. L
L = (max + min) / 2 = 0.9020 = 90.20%
4. S
S = Δ / (1 − |2L − 1|) = 0.8000 = 80.00%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.9804 − 0.8235) / 0.1569) mod 6) = 60.00°
6. HSL
hsl(60.00 80.00% 90.20%)
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).
- lemonchiffon#FFFACD
- cornsilk#FFF8DC
- v3 yellow-100#FEF9C3
- v3 amber-100#FEF3C7
- amber-100#FEF3C6
- yellow-100#FEF9C2
- lightyellow#FFFFE0
- beige#F5F5DC
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
Guides: What is OKLCH?