About Light Coral
Light Coral (lightcoral) is a light, vivid red with the hex code #f08080, or rgb(240, 128, 128). In HSL it sits at a hue of 0°, 79% saturation and 72% lightness. It is one of the 148 named colors every browser understands, so you can write color: lightcoral; instead of the hex value.
Using Light Coral for text and backgrounds
| Pairing | Contrast ratio | WCAG |
|---|---|---|
| Light Coral text on white | 2.59 : 1 | fails |
| Light Coral text on black | 8.10 : 1 | AAA |
On a light coral background, use black text (8.10 : 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: lightcoral; /* or #f08080 */
background-color: #f08080;
border: 1px solid rgb(240 128 128 / 50%);
}
Similar named colors
Salmon (#fa8072), Dark Salmon (#e9967a), Pale Violet Red (#db7093), Light Salmon (#ffa07a), Sandy Brown (#f4a460), Coral (#ff7f50).