About Light Goldenrod Yellow
Light Goldenrod Yellow (lightgoldenrodyellow) is a very light, vivid yellow with the hex code #fafad2, or rgb(250, 250, 210). In HSL it sits at a hue of 60°, 80% saturation and 90% lightness. It is one of the 148 named colors every browser understands, so you can write color: lightgoldenrodyellow; instead of the hex value.
Using Light Goldenrod Yellow for text and backgrounds
| Pairing | Contrast ratio | WCAG |
|---|---|---|
| Light Goldenrod Yellow text on white | 1.07 : 1 | fails |
| Light Goldenrod Yellow text on black | 19.67 : 1 | AAA |
On a light goldenrod yellow background, use black text (19.67 : 1). WCAG asks for at least 4.5 : 1 for body text and 3 : 1 for large text. Check other pairs with the Contrast Checker.
CSS
.element {
color: lightgoldenrodyellow; /* or #fafad2 */
background-color: #fafad2;
border: 1px solid rgb(250 250 210 / 50%);
}
Similar named colors
Lemon Chiffon (#fffacd), Corn Silk (#fff8dc), Beige (#f5f5dc), Papaya Whip (#ffefd5), Light Yellow (#ffffe0), Antique White (#faebd7).