Skip to content

CSS named color

Coral #FF7F50

Coral (CSS keyword coral) has the hex code #FF7F50 and the RGB value rgb(255, 127, 80): a light, vivid red-orange.

Coral#FF7F50

Named after the pinkish-orange skeletons of reef coral. Coral is a popular accent for buttons and highlights because it is warm without being as aggressive as pure red or orange.

Color codes for Coral

Color codes for Coral
CSS keywordcoral
HEX#FF7F50
RGBrgb(255, 127, 80)
HSLhsl(16, 100%, 66%)
HWBhwb(16 31% 0%)
OKLCHoklch(73.5% 0.168 40.2)
CMYK (naive, no ICC profile)cmyk(0%, 50%, 69%, 0%)
Decimal16,744,272
Hue familyOranges

Contrast and accessibility

On coral, black text has a contrast ratio of 8.40:1 and passes AAA at any text size; white text reaches 2.49: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 coral8.40:1PassPassPassPass55.5
White text on coral2.49:1FailFailFailFail−53.5
Coral text on white2.49:1FailFailFailFail48.5
Coral text on black8.40:1PassPassPassPass−53.5

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #ff8559
  2. 15%
    #ff926a
  3. 25%
    #ff9f7c
  4. 35%
    #ffac8d
  5. 45%
    #ffb99f
  6. 55%
    #ffc5b0
  7. 65%
    #ffd2c2
  8. 75%
    #ffdfd3
  9. 85%
    #ffece5
  10. 95%
    #fff9f6

Shades (mixed with black)

  1. 5%
    #f2794c
  2. 15%
    #d96c44
  3. 25%
    #bf5f3c
  4. 35%
    #a65334
  5. 45%
    #8c462c
  6. 55%
    #733924
  7. 65%
    #592c1c
  8. 75%
    #402014
  9. 85%
    #26130c
  10. 95%
    #0d0604

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, coral's complementary color is #00BEEC (close to deepskyblue), its analogous colors are #FF7690 and #EB9300, and its triadic partners are #00C884 and #979BFF. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#00beec
Analogous−30°, +30°#ff7690#eb9300
Triadic+120°, +240°#00c884#979bff
Split-complementary+150°, +210°#00c5be#4baeff

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?

Coral is a warm color: its hue is 16° 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
salmon#fa80723.8
tomato#ff63475.4
darkorange#ff8c005.8

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
orange-400#ff89045.2
orange-500#ff69005.9
red-400#ff64676.8

Code snippets

CSS
.element {
  color: coral;
  background-color: #ff7f50;
  border-color: rgb(255 127 80);
  outline-color: oklch(73.5% 0.168 40.2);
}
Tailwind CSS
<div class="bg-[#ff7f50] text-black">...</div>

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

extension Color {
  static let coral = Color(red: 1.000, green: 0.498, blue: 0.314)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const coral = Color(0xFFFF7F50);
Android XML
<!-- res/values/colors.xml -->
<color name="coral">#FF7F50</color>

Frequently asked questions

What is the hex code for coral?
The hex code for coral is #FF7F50. The same color is rgb(255, 127, 80), hsl(16, 100%, 66%) and oklch(73.5% 0.168 40.2), and in CSS you can also write the keyword coral directly.
Is coral a warm or cool color?
Coral is a warm color: its hue is 16° 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 coral?
Rotating the hue in OKLCH while keeping lightness and chroma, coral's complementary color is #00BEEC (close to deepskyblue), its analogous colors are #FF7690 and #EB9300, and its triadic partners are #00C884 and #979BFF. For text on top, black gives the higher contrast.
Can you use white text on coral?
White text on coral has a contrast ratio of 2.49:1, which fails AA even for large text under WCAG 2.2. Black text reaches 8.40:1 and passes both AA and AAA. In APCA terms that is Lc −53.5 for white and Lc 55.5 for black.
What is the RGB value of coral?
Coral is rgb(255, 127, 80): red 255, green 127 and blue 80 on the 0 to 255 scale, or 100.0%, 49.8% and 31.4%. As a decimal integer it is 16744272.

Last reviewed by Arielton Oberek.