CSS named color

Light Coral #F08080

The CSS keyword lightcoral is #F08080. It is a light soft red in the red family. In OKLCH it sits at lightness 0.725, chroma 0.138 and hue 21.0°.

Relative luminance
0.3552
OKLCH L · C · h
0.725 · 0.138 · 21.0
Best text
Black 8.10:1
Hue family
Red

#F08080 color codes

HEX
#F08080
RGB
rgb(240, 128, 128)
HSL
hsl(0, 79%, 72%)
OKLCH
oklch(0.725 0.138 21.0)
OKLab
oklab(0.725 0.129 0.049)
CIELAB (D65)
L* 66.16, a* 42.81, b* 19.56
XYZ (D65)
X 47.55, Y 35.53, Z 24.77
CMYK (naive)
cmyk(0%, 47%, 47%, 6%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

Legibility

Contrast: is #F08080 accessible?

Black text on it reaches 8.10:1, passing AAA. White text fails at 2.59:1.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    8.10:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc +53
  • White text on it

    2.59:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc −55
  • As text on black

    8.10:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc −51
  • As text on white

    2.59:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc +50

Nearest versions that pass 4.5:1

  • For text on white

    #BE5356 4.60:1

    Darkening its OKLCH lightness from 0.72 to 0.58 reaches 4.60:1 on white, keeping the hue.

  • For text on black

    #F08080 8.10:1

    It already reaches 8.10:1 on black, so no change is needed.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #F08080 live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #F08080

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #F08080 sits at step 400.

  1. 50#FFF1F1
    White
    1.09
    Black
    19.10
  2. 100#FFE4E2
    White
    1.20
    Black
    17.44
  3. 200#FFC8C5
    White
    1.46
    Black
    14.31
  4. 300#FF9F9E
    White
    1.96
    Black
    10.70
  5. 400This color#F08080
    White
    2.59
    Black
    8.10
  6. 500#CC6061
    White
    3.87
    Black
    5.41
  7. 600#B0484B
    White
    5.41
    Black
    3.87
  8. 700#943136
    White
    7.63
    Black
    2.75
  9. 800#741720
    White
    11.13
    Black
    1.88
  10. 900#53000E
    White
    15.28
    Black
    1.37
  11. 950#320005
    White
    18.45
    Black
    1.13

Under each step, white and black text on it; a bold figure passes 4.5:1.

Gamut

How vivid #F08080 can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.171; #F08080 uses 81% of it. Display P3, which many recent phones and laptops show, reaches 0.218 there: 28% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.138
sRGB edge
0.171
Display P3 edge
0.218
Rec. 2020 edge
0.314
Dominant wavelength
611 nm
Excitation purity
36%
Chromaticity
x 0.4409, y 0.3294
  • This color#F08080
  • Most vivid in sRGB#FF7376
  • Most vivid in Display P3oklch(0.725 0.218 21.0)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #f08080;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 1 0.4142 0.4272); }
}

Mixing

Mixing #F08080

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#F8C0C0
  • OKLab50%#FCC0BE
  • OKLCH50%#FCC0BE

Black #000000

  • sRGB50%#784040
  • OKLab50%#5D2E2E
  • OKLCH50%#5D2E2E

Its complement #00BCC6

  • sRGB50%#789EA3
  • OKLab50%#AAA4A4
  • OKLCH50%#A796F1
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #f08080, white);
color: color-mix(in oklch, #f08080 50%, white);

In use

#F08080 in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:18.10:1 Passes
  • Link and body-size textText, 4.5:12.59:1 Fails
  • Large headingLarge text, 3:12.59:1 Fails
  • Icons, borders and focus ringsNon-text, 3:12.59:1 Fails

For text on this page, the nearest shade that passes is #BE5356 4.60:1

Dark page

  • Button labelText, 4.5:18.10:1 Passes
  • Link and body-size textText, 4.5:17.22:1 Passes
  • Large headingLarge text, 3:17.22:1 Passes
  • Icons, borders and focus ringsNon-text, 3:17.22:1 Passes

Color vision

How #F08080 looks with color blindness

Deuteranopia changes it most, ΔE2000 32.2; tritanopia changes it least, 4.7.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #98937F ΔE2000 28.4

    Distinct

    Reads as light grayish amber

  • Deuteranopia

    No working green (medium-wavelength) cones

    #B4AA7E ΔE2000 32.2

    Distinct

    Reads as light muted amber

  • Tritanopia

    No working blue (short-wavelength) cones

    #FF7181 ΔE2000 4.7

    Close match

    Reads as light vivid red

  • Achromatopsia

    No cone color vision; lightness only

    #A1A1A1 ΔE2000 24.5

    Distinct

    Reads as gray

Pairing check

Checked against its complement, #00BCC6. Their lightness contrast is only 1.11:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#F08080 · #00BCC667.4Stays distinct
Protanopia#98937F · #ACB3C721.9Stays distinct
Deuteranopia#B4AA7E · #96A3C732.4Stays distinct
Tritanopia#FF7181 · #00C4BF62.0Stays distinct
Achromatopsia#A1A1A1 · #AAAAAA2.7Easily confused

Harmony

Color harmonies for #F08080

Its complement is #00BCC6, a light soft cyan, on the cool side of the wheel.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#F08080
  • Complement#00BCC6

Complementary

Open in Harmony Studio
  • −30°#E680B1
  • Base#F08080
  • +30°#E98A4F
  • Base#F08080
  • +120°#73BB67
  • +240°#74A5FC
  • Base#F08080
  • +150°#1AC19A
  • +210°#26B4EC

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-lightcoral: #f08080;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        lightcoral: '#f08080',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-lightcoral: oklch(0.725 0.138 21.0);
}

Design token (W3C DTCG)

{
  "color": {
    "lightcoral": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.9412, 0.502, 0.502],
        "hex": "#f08080"
      },
      "$description": "CSS named color lightcoral"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let lightcoral = Color(.sRGB, red: 0.941, green: 0.502, blue: 0.502, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Lightcoral = Color(0xFFF08080)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #F08080 in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.