CSS named color

Coral #FF7F50

The CSS keyword coral is #FF7F50. It is a light soft red in the red family. In OKLCH it sits at lightness 0.735, chroma 0.168 and hue 40.2°.

Relative luminance
0.3702
OKLCH L · C · h
0.735 · 0.168 · 40.2
Best text
Black 8.40:1
Hue family
Red

#FF7F50 color codes

HEX
#FF7F50
RGB
rgb(255, 127, 80)
HSL
hsl(16, 100%, 66%)
OKLCH
oklch(0.735 0.168 40.2)
OKLab
oklab(0.735 0.128 0.109)
CIELAB (D65)
L* 67.30, a* 45.35, b* 47.49
XYZ (D65)
X 50.28, Y 37.02, Z 12.09
CMYK (naive)
cmyk(0%, 50%, 69%, 0%)

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 #FF7F50 accessible?

Black text on it reaches 8.40:1, passing AAA. White text fails at 2.49: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.40:1

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

    2.49:1

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

    8.40:1

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

    2.49:1

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

Nearest versions that pass 4.5:1

  • For text on white

    #CA4F1B 4.52:1

    Darkening its OKLCH lightness from 0.74 to 0.59 reaches 4.52:1 on white, keeping the hue.

  • For text on black

    #FF7F50 8.40:1

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

Checking another pair? Use the Contrast Checker.

Studio

Adjust #FF7F50 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 #FF7F50

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

  1. 50#FFF2ED
    White
    1.09
    Black
    19.17
  2. 100#FFE5DC
    White
    1.20
    Black
    17.49
  3. 200#FFCAB7
    White
    1.45
    Black
    14.38
  4. 300#FFA382
    White
    1.94
    Black
    10.81
  5. 400This color#FF7F50
    White
    2.49
    Black
    8.40
  6. 500#D65A29
    White
    3.92
    Black
    5.35
  7. 600#BA4103
    White
    5.46
    Black
    3.84
  8. 700#963200
    White
    7.62
    Black
    2.75
  9. 800#6F2300
    White
    10.95
    Black
    1.91
  10. 900#4B1400
    White
    15.00
    Black
    1.39
  11. 950#2C0800
    White
    18.39
    Black
    1.14

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

Gamut

How vivid #FF7F50 can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.168; #FF7F50 uses 100% of it. Display P3, which many recent phones and laptops show, reaches 0.213 there: 27% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.168
sRGB edge
0.168
Display P3 edge
0.213
Rec. 2020 edge
0.260
Dominant wavelength
595 nm
Excitation purity
66%
Chromaticity
x 0.5059, y 0.3725
  • This color#FF7F50
  • Most vivid in sRGB#FF7F50
  • Most vivid in Display P3oklch(0.735 0.213 40.2)

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

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

Mixing

Mixing #FF7F50

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%#FFBFA8
  • OKLab50%#FFC1AA
  • OKLCH50%#FFC4AF

Black #000000

  • sRGB50%#804028
  • OKLab50%#632D1A
  • OKLCH50%#632D1A

Its complement #00BCE3

  • sRGB50%#809E9A
  • OKLab50%#B3A6A1
  • OKLCH50%#89BC4D
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #ff7f50, white);
color: color-mix(in oklch, #ff7f50 50%, white);

In use

#FF7F50 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.40:1 Passes
  • Link and body-size textText, 4.5:12.49:1 Fails
  • Large headingLarge text, 3:12.49:1 Fails
  • Icons, borders and focus ringsNon-text, 3:12.49:1 Fails

For text on this page, the nearest shade that passes is #CA4F1B 4.52:1

Dark page

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

Color vision

How #FF7F50 looks with color blindness

Deuteranopia changes it most, ΔE2000 32.8; tritanopia changes it least, 16.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

    #A2924B ΔE2000 30.4

    Distinct

    Reads as muted amber

  • Deuteranopia

    No working green (medium-wavelength) cones

    #C1AF4D ΔE2000 32.8

    Distinct

    Reads as light soft amber

  • Tritanopia

    No working blue (short-wavelength) cones

    #FF6574 ΔE2000 16.7

    Distinct

    Reads as light vivid red

  • Achromatopsia

    No cone color vision; lightness only

    #A4A4A4 ΔE2000 26.7

    Distinct

    Reads as gray

Pairing check

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

VisionThe pairΔE2000Verdict
Normal vision#FF7F50 · #00BCE358.8Stays distinct
Protanopia#A2924B · #A4B7E541.9Stays distinct
Deuteranopia#C1AF4D · #8BA5E348.5Stays distinct
Tritanopia#FF6574 · #00C9C962.3Stays distinct
Achromatopsia#A4A4A4 · #ACACAC2.3Easily confused

Harmony

Color harmonies for #FF7F50

Its complement is #00BCE3, a light soft blue, 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#FF7F50
  • Complement#00BCE3

Complementary

Open in Harmony Studio
  • −30°#FF7791
  • Base#FF7F50
  • +30°#E79500
  • Base#FF7F50
  • +120°#00C885
  • +240°#999EFF
  • Base#FF7F50
  • +150°#00C2BB
  • +210°#5DAEFF

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-coral: #ff7f50;
}

Tailwind config

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

Tailwind v4 theme

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

@theme {
  --color-coral: oklch(0.735 0.168 40.2);
}

Design token (W3C DTCG)

{
  "color": {
    "coral": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [1, 0.498, 0.3137],
        "hex": "#ff7f50"
      },
      "$description": "CSS named color coral"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let coral = Color(.sRGB, red: 1.000, green: 0.498, blue: 0.314, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Coral = Color(0xFFFF7F50)
}

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 #FF7F50 in the tools

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