CSS named color

Tomato #FF6347

The CSS keyword tomato is #FF6347. It is a light vivid red in the red family. In OKLCH it sits at lightness 0.696, chroma 0.196 and hue 32.3°.

Relative luminance
0.3064
OKLCH L · C · h
0.696 · 0.196 · 32.3
Best text
Black 7.12:1
Hue family
Red

#FF6347 color codes

HEX
#FF6347
RGB
rgb(255, 99, 71)
HSL
hsl(9, 100%, 64%)
OKLCH
oklch(0.696 0.196 32.3)
OKLab
oklab(0.696 0.165 0.105)
CIELAB (D65)
L* 62.21, a* 57.85, b* 46.42
XYZ (D65)
X 46.84, Y 30.65, Z 9.41
CMYK (naive)
cmyk(0%, 61%, 72%, 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 #FF6347 accessible?

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

    7.12:1

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

    2.94:1

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

    7.12:1

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

    2.94:1

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

Nearest versions that pass 4.5:1

  • For text on white

    #D73D22 4.58:1

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

  • For text on black

    #FF6347 7.12:1

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

Checking another pair? Use the Contrast Checker.

Studio

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

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

  1. 50#FFF2EF
    White
    1.09
    Black
    19.19
  2. 100#FFE4DF
    White
    1.20
    Black
    17.41
  3. 200#FFC9BD
    White
    1.46
    Black
    14.34
  4. 300#FFA18E
    White
    1.95
    Black
    10.74
  5. 400This color#FF6347
    White
    2.94
    Black
    7.12
  6. 500#E3492E
    White
    3.99
    Black
    5.25
  7. 600#C62C0E
    White
    5.57
    Black
    3.76
  8. 700#A21B00
    White
    7.79
    Black
    2.69
  9. 800#781100
    White
    11.17
    Black
    1.87
  10. 900#510800
    White
    15.16
    Black
    1.38
  11. 950#310200
    White
    18.43
    Black
    1.13

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

Gamut

How vivid #FF6347 can get

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

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.196
sRGB edge
0.196
Display P3 edge
0.248
Rec. 2020 edge
0.292
Dominant wavelength
602 nm
Excitation purity
70%
Chromaticity
x 0.5391, y 0.3527
  • This color#FF6347
  • Most vivid in sRGB#FF6347
  • Most vivid in Display P3oklch(0.696 0.248 32.3)

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

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

Mixing

Mixing #FF6347

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%#FFB1A3
  • OKLab50%#FFB6A5
  • OKLCH50%#FFBAAB

Black #000000

  • sRGB50%#803224
  • OKLab50%#632116
  • OKLCH50%#632116

Its complement #00B0C9

  • sRGB50%#808A88
  • OKLab50%#B3958F
  • OKLCH50%#B082EE
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #ff6347, white);
color: color-mix(in oklch, #ff6347 50%, white);

In use

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

For text on this page, the nearest shade that passes is #D73D22 4.58:1

Dark page

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

Color vision

How #FF6347 looks with color blindness

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

    #8E8143 ΔE2000 35.7

    Distinct

    Reads as muted amber

  • Deuteranopia

    No working green (medium-wavelength) cones

    #B5A342 ΔE2000 38.5

    Distinct

    Reads as light soft amber

  • Tritanopia

    No working blue (short-wavelength) cones

    #FF3D5D ΔE2000 12.7

    Distinct

    Reads as light vivid red

  • Achromatopsia

    No cone color vision; lightness only

    #969696 ΔE2000 27.9

    Distinct

    Reads as gray

Pairing check

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

VisionThe pairΔE2000Verdict
Normal vision#FF6347 · #00B0C966.4Stays distinct
Protanopia#8E8143 · #9DA9CA37.9Stays distinct
Deuteranopia#B5A342 · #8799C945.1Stays distinct
Tritanopia#FF3D5D · #00BAB865.1Stays distinct
Achromatopsia#969696 · #A0A0A03.2Easily confused

Harmony

Color harmonies for #FF6347

Its complement is #00B0C9, 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#FF6347
  • Complement#00B0C9

Complementary

Open in Harmony Studio
  • −30°#F95D93
  • Base#FF6347
  • +30°#E18300
  • Base#FF6347
  • +120°#00BC62
  • +240°#7C94FF
  • Base#FF6347
  • +150°#00B6A3
  • +210°#00A6FB

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-tomato: #ff6347;
}

Tailwind config

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

Tailwind v4 theme

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

@theme {
  --color-tomato: oklch(0.696 0.196 32.3);
}

Design token (W3C DTCG)

{
  "color": {
    "tomato": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [1, 0.3882, 0.2784],
        "hex": "#ff6347"
      },
      "$description": "CSS named color tomato"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let tomato = Color(.sRGB, red: 1.000, green: 0.388, blue: 0.278, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Tomato = Color(0xFFFF6347)
}

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

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