HEX to RGB: #FA8072

Also known as: CSS salmon

Result

#FA8072 → rgb(250 128 114)

Values are shown at full precision, so converting back gives exactly #fa8072. The rounded form is what you normally paste into CSS.

Step-by-step math

Every number below is computed from the input, nothing is looked up.

  1. 1. HEX → pairs

    #FA8072 → FA | 80 | 72
  2. 2. base 16 → base 10

    R = FA₁₆ = 15×16 + 10 = 250
    G = 80₁₆ = 8×16 + 0 = 128
    B = 72₁₆ = 7×16 + 2 = 114
  3. 3. RGB

    rgb(250 128 114)

All formats

HEX
#fa8072
RGB
rgb(250 128 114)
RGB (legacy)
rgb(250, 128, 114)
HSL
hsl(6.18 93.15% 71.37%) → hsl(6 93% 71%)
HWB
hwb(6 45% 2%)
OKLCH
oklch(0.735 0.152 28.1) · oklch(73.5% 0.152 28.1)
OKLab
oklab(0.735 0.134 0.071)
Lab (D50)
lab(67.85 46.63 30.16)
LCH (D50)
lch(67.85 55.53 32.90)
Display P3
color(display-p3 0.9185 0.5275 0.4675)
Linear sRGB
color(srgb-linear 0.9560 0.2159 0.1683)

Gamut: sRGB and Display P3

#FA8072 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.162 and Display P3 reaches 0.207; this color uses 93% of the sRGB chroma available.

CSS snippets

.element {
  color: #fa8072;
  color: rgb(250 128 114);
  color: hsl(6 93% 71%);
  color: oklch(0.735 0.152 28.1);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.735 0.152 28.1);
}
/* arbitrary values */
class="text-[#fa8072] bg-[oklch(0.735_0.152_28.1)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9185 0.5275 0.4675); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #fa8072 calc(l - 0.1) c h); }

Nearby colors

Closest colors in the Tailwind and CSS named palettes (OKLab distance).

Lighter and darker, same hue and chroma

  • #FF9384 · oklch(0.795 0.152 28.1) · ΔL +0.06
  • #E56D60 · oklch(0.675 0.152 28.1) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?