Skip to content

CSS named color

Tomato #FF6347

Tomato (CSS keyword tomato) has the hex code #FF6347 and the RGB value rgb(255, 99, 71): a medium, vivid red-orange.

Tomato#FF6347

A bright red-orange (#ff6347) like a ripe tomato, slightly redder than coral. Often used for warnings and destructive actions that should not look as harsh as pure red.

Color codes for Tomato

Color codes for Tomato
CSS keywordtomato
HEX#FF6347
RGBrgb(255, 99, 71)
HSLhsl(9, 100%, 64%)
HWBhwb(9 28% 0%)
OKLCHoklch(69.6% 0.196 32.3)
CMYK (naive, no ICC profile)cmyk(0%, 61%, 72%, 0%)
Decimal16,737,095
Hue familyOranges

Contrast and accessibility

On tomato, black text has a contrast ratio of 7.12:1 and passes AAA at any text size; white text reaches 2.94:1.

WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on tomato7.12:1PassPassPassPass49.0
White text on tomato2.94:1FailFailFailFail−60.3
Tomato text on white2.94:1FailFailFailFail55.0
Tomato text on black7.12:1PassPassPassPass−46.8

Tints and shades

Each step mixes tomato with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, tomato, white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #ff6b50
  2. 15%
    #ff7a63
  3. 25%
    #ff8a75
  4. 35%
    #ff9a87
  5. 45%
    #ffa99a
  6. 55%
    #ffb9ac
  7. 65%
    #ffc8bf
  8. 75%
    #ffd8d1
  9. 85%
    #ffe8e3
  10. 95%
    #fff7f6

Shades (mixed with black)

  1. 5%
    #f25e43
  2. 15%
    #d9543c
  3. 25%
    #bf4a35
  4. 35%
    #a6402e
  5. 45%
    #8c3627
  6. 55%
    #732d20
  7. 65%
    #592319
  8. 75%
    #401912
  9. 85%
    #260f0b
  10. 95%
    #0d0504

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, tomato's complementary color is #00B3D0 (close to lightseagreen), its analogous colors are #F95D93 and #E97D00, and its triadic partners are #00BE5C and #7891FF. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#00b3d0
Analogous−30°, +30°#f95d93#e97d00
Triadic+120°, +240°#00be5c#7891ff
Split-complementary+150°, +210°#00b9a5#00a6ff

Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.

Warm or cool?

Tomato is a warm color: its hue is 9° on the HSL wheel, in the red, orange and yellow range (0° to about 70°, plus reds above 330°) that is conventionally called warm.

Nearest named and Tailwind colors

Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
orangered#ff45005.1
coral#ff7f505.4
salmon#fa80726.0

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
red-400#ff64673.5
orange-500#ff69005.8
orange-600#f549006.5

Code snippets

CSS
.element {
  color: tomato;
  background-color: #ff6347;
  border-color: rgb(255 99 71);
  outline-color: oklch(69.6% 0.196 32.3);
}
Tailwind CSS
<div class="bg-[#ff6347] text-black">...</div>

/* or register it once in your CSS (Tailwind v4) */
@theme {
  --color-tomato: #ff6347;
}
/* then use bg-tomato, text-tomato, border-tomato */
SwiftUI
import SwiftUI

extension Color {
  static let tomato = Color(red: 1.000, green: 0.388, blue: 0.278)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Tomato = Color(0xFFFF6347)
Flutter
import 'package:flutter/material.dart';

const tomato = Color(0xFFFF6347);
Android XML
<!-- res/values/colors.xml -->
<color name="tomato">#FF6347</color>

Frequently asked questions

What is the hex code for tomato?
The hex code for tomato is #FF6347. The same color is rgb(255, 99, 71), hsl(9, 100%, 64%) and oklch(69.6% 0.196 32.3), and in CSS you can also write the keyword tomato directly.
Is tomato a warm or cool color?
Tomato is a warm color: its hue is 9° on the HSL wheel, in the red, orange and yellow range (0° to about 70°, plus reds above 330°) that is conventionally called warm.
What colors go with tomato?
Rotating the hue in OKLCH while keeping lightness and chroma, tomato's complementary color is #00B3D0 (close to lightseagreen), its analogous colors are #F95D93 and #E97D00, and its triadic partners are #00BE5C and #7891FF. For text on top, black gives the higher contrast.
Can you use white text on tomato?
White text on tomato has a contrast ratio of 2.94:1, which fails AA even for large text under WCAG 2.2. Black text reaches 7.12:1 and passes both AA and AAA. In APCA terms that is Lc −60.3 for white and Lc 49.0 for black.
What is the RGB value of tomato?
Tomato is rgb(255, 99, 71): red 255, green 99 and blue 71 on the 0 to 255 scale, or 100.0%, 38.8% and 27.8%. As a decimal integer it is 16737095.

Last reviewed by Arielton Oberek.