RGB to HEX: #FAFAD2
Also known as: CSS lightgoldenrodyellow
Result
rgb(250 250 210) → #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. base 10 → base 16
R = 250 = 15×16 + 10 → FA G = 250 = 15×16 + 10 → FA B = 210 = 13×16 + 2 → D2
2. pairs → HEX
FA FA D2 → #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).
- 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?