CSS named color
Salmon #FA8072
Salmon (CSS keyword salmon) has the hex code #FA8072 and the RGB value rgb(250, 128, 114): a light, vivid red.
Named after the pink-orange flesh of salmon (#fa8072). It is warmer than lightcoral and pinker than lightsalmon.
Color codes for Salmon
| CSS keyword | salmon |
|---|---|
| HEX | #FA8072 |
| RGB | rgb(250, 128, 114) |
| HSL | hsl(6, 93%, 71%) |
| HWB | hwb(6 45% 2%) |
| OKLCH | oklch(73.5% 0.152 28.1) |
| CMYK (naive, no ICC profile) | cmyk(0%, 49%, 54%, 2%) |
| Decimal | 16,416,882 |
| Hue family | Reds |
Contrast and accessibility
On salmon, black text has a contrast ratio of 8.39:1 and passes AAA at any text size; white text reaches 2.50: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 salmon | 8.39:1 | Pass | Pass | Pass | Pass | 55.4 |
| White text on salmon | 2.50:1 | Fail | Fail | Fail | Fail | −53.7 |
| Salmon text on white | 2.50:1 | Fail | Fail | Fail | Fail | 48.6 |
| Salmon text on black | 8.39:1 | Pass | Pass | Pass | Pass | −53.3 |
Tints and shades
Each step mixes salmon with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, salmon, white 25%) in CSS.
Tints (mixed with white)
- 5%
#fa8679 - 15%
#fb9387 - 25%
#fba095 - 35%
#fcaca3 - 45%
#fcb9b1 - 55%
#fdc6c0 - 65%
#fdd3ce - 75%
#fedfdc - 85%
#feecea - 95%
#fff9f8
Shades (mixed with black)
- 5%
#ee7a6c - 15%
#d56d61 - 25%
#bc6056 - 35%
#a3534a - 45%
#8a463f - 55%
#703a33 - 65%
#582d28 - 75%
#3f201d - 85%
#261311 - 95%
#0d0606
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, salmon's complementary color is #00C1D9 (close to darkturquoise), its analogous colors are #F37DA9 and #EF8E38, and its triadic partners are #5DC370 and #80A4FF. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #00c1d9 |
| Analogous | −30°, +30° | #f37da9#ef8e38 |
| Triadic | +120°, +240° | #5dc370#80a4ff |
| Split-complementary | +150°, +210° | #00c7a9#2cb5fd |
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?
Salmon is a warm color: its hue is 6° 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 |
|---|---|---|
| lightcoral | #f08080 | 2.5 |
| coral | #ff7f50 | 3.8 |
| darksalmon | #e9967a | 5.3 |
Code snippets
.element {
color: salmon;
background-color: #fa8072;
border-color: rgb(250 128 114);
outline-color: oklch(73.5% 0.152 28.1);
}<div class="bg-[#fa8072] text-black">...</div>
/* or register it once in your CSS (Tailwind v4) */
@theme {
--color-salmon: #fa8072;
}
/* then use bg-salmon, text-salmon, border-salmon */import SwiftUI
extension Color {
static let salmon = Color(red: 0.980, green: 0.502, blue: 0.447)
}import androidx.compose.ui.graphics.Color
val Salmon = Color(0xFFFA8072)import 'package:flutter/material.dart';
const salmon = Color(0xFFFA8072);<!-- res/values/colors.xml -->
<color name="salmon">#FA8072</color>Frequently asked questions
- What is the hex code for salmon?
- The hex code for salmon is #FA8072. The same color is rgb(250, 128, 114), hsl(6, 93%, 71%) and oklch(73.5% 0.152 28.1), and in CSS you can also write the keyword salmon directly.
- Is salmon a warm or cool color?
- Salmon is a warm color: its hue is 6° 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 salmon?
- Rotating the hue in OKLCH while keeping lightness and chroma, salmon's complementary color is #00C1D9 (close to darkturquoise), its analogous colors are #F37DA9 and #EF8E38, and its triadic partners are #5DC370 and #80A4FF. For text on top, black gives the higher contrast.
- Can you use white text on salmon?
- White text on salmon has a contrast ratio of 2.50:1, which fails AA even for large text under WCAG 2.2. Black text reaches 8.39:1 and passes both AA and AAA. In APCA terms that is Lc −53.7 for white and Lc 55.4 for black.
- What is the RGB value of salmon?
- Salmon is rgb(250, 128, 114): red 250, green 128 and blue 114 on the 0 to 255 scale, or 98.0%, 50.2% and 44.7%. As a decimal integer it is 16416882.
Last reviewed by Arielton Oberek.