HEX to RGB: #FAFAD2

Also known as: CSS lightgoldenrodyellow

Result

#FAFAD2 → rgb(250 250 210)

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. HEX → pairs

    #FAFAD2 → FA | FA | D2
  2. 2. base 16 → base 10

    R = FA₁₆ = 15×16 + 10 = 250
    G = FA₁₆ = 15×16 + 10 = 250
    B = D2₁₆ = 13×16 + 2 = 210
  3. 3. RGB

    rgb(250 250 210)

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?