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.
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
| CSS keyword | coral |
|---|---|
| HEX | #FF7F50 |
| RGB | rgb(255, 127, 80) |
| HSL | hsl(16, 100%, 66%) |
| HWB | hwb(16 31% 0%) |
| OKLCH | oklch(73.5% 0.168 40.2) |
| CMYK (naive, no ICC profile) | cmyk(0%, 50%, 69%, 0%) |
| Decimal | 16,744,272 |
| Hue family | Oranges |
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.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on coral | 8.40:1 | Pass | Pass | Pass | Pass | 55.5 |
| White text on coral | 2.49:1 | Fail | Fail | Fail | Fail | −53.5 |
| Coral text on white | 2.49:1 | Fail | Fail | Fail | Fail | 48.5 |
| Coral text on black | 8.40:1 | Pass | Pass | Pass | Pass | −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)
- 5%
#ff8559 - 15%
#ff926a - 25%
#ff9f7c - 35%
#ffac8d - 45%
#ffb99f - 55%
#ffc5b0 - 65%
#ffd2c2 - 75%
#ffdfd3 - 85%
#ffece5 - 95%
#fff9f6
Shades (mixed with black)
- 5%
#f2794c - 15%
#d96c44 - 25%
#bf5f3c - 35%
#a65334 - 45%
#8c462c - 55%
#733924 - 65%
#592c1c - 75%
#402014 - 85%
#26130c - 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.
| Harmony | Rotation | Color |
|---|---|---|
| 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
| Color | HEX | ΔE OK |
|---|---|---|
| salmon | #fa8072 | 3.8 |
| tomato | #ff6347 | 5.4 |
| darkorange | #ff8c00 | 5.8 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| orange-400 | #ff8904 | 5.2 |
| orange-500 | #ff6900 | 5.9 |
| red-400 | #ff6467 | 6.8 |
Code snippets
.element {
color: coral;
background-color: #ff7f50;
border-color: rgb(255 127 80);
outline-color: oklch(73.5% 0.168 40.2);
}<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 */import SwiftUI
extension Color {
static let coral = Color(red: 1.000, green: 0.498, blue: 0.314)
}import androidx.compose.ui.graphics.Color
val Coral = Color(0xFFFF7F50)import 'package:flutter/material.dart';
const coral = Color(0xFFFF7F50);<!-- 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.