Skip to content

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.

Salmon#FA8072

Named after the pink-orange flesh of salmon (#fa8072). It is warmer than lightcoral and pinker than lightsalmon.

Color codes for Salmon

Color codes for Salmon
CSS keywordsalmon
HEX#FA8072
RGBrgb(250, 128, 114)
HSLhsl(6, 93%, 71%)
HWBhwb(6 45% 2%)
OKLCHoklch(73.5% 0.152 28.1)
CMYK (naive, no ICC profile)cmyk(0%, 49%, 54%, 2%)
Decimal16,416,882
Hue familyReds

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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on salmon8.39:1PassPassPassPass55.4
White text on salmon2.50:1FailFailFailFail−53.7
Salmon text on white2.50:1FailFailFailFail48.6
Salmon text on black8.39:1PassPassPassPass−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)

  1. 5%
    #fa8679
  2. 15%
    #fb9387
  3. 25%
    #fba095
  4. 35%
    #fcaca3
  5. 45%
    #fcb9b1
  6. 55%
    #fdc6c0
  7. 65%
    #fdd3ce
  8. 75%
    #fedfdc
  9. 85%
    #feecea
  10. 95%
    #fff9f8

Shades (mixed with black)

  1. 5%
    #ee7a6c
  2. 15%
    #d56d61
  3. 25%
    #bc6056
  4. 35%
    #a3534a
  5. 45%
    #8a463f
  6. 55%
    #703a33
  7. 65%
    #582d28
  8. 75%
    #3f201d
  9. 85%
    #261311
  10. 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.

Color harmonies
HarmonyRotationColor
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

Nearest CSS named colors
ColorHEXΔE OK
lightcoral#f080802.5
coral#ff7f503.8
darksalmon#e9967a5.3

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
red-400#ff64675.3
rose-400#ff637e6.5
red-300#ffa2a28.4

Code snippets

CSS
.element {
  color: salmon;
  background-color: #fa8072;
  border-color: rgb(250 128 114);
  outline-color: oklch(73.5% 0.152 28.1);
}
Tailwind CSS
<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 */
SwiftUI
import SwiftUI

extension Color {
  static let salmon = Color(red: 0.980, green: 0.502, blue: 0.447)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const salmon = Color(0xFFFA8072);
Android XML
<!-- 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.