RGB to HEX: #FA8072
Also known as: CSS salmon
Result
rgb(250 128 114) → #FA8072
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. base 10 → base 16
R = 250 = 15×16 + 10 → FA G = 128 = 8×16 + 0 → 80 B = 114 = 7×16 + 2 → 72
2. pairs → HEX
FA 80 72 → #FA8072
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).
- lightcoral#F08080
- v3 red-400#F87171
- coral#FF7F50
- v3 rose-400#FB7185
- darksalmon#E9967A
- red-400#FF6467
- tomato#FF6347
- rose-400#FF637E
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
Guides: What is OKLCH?