HSL to HEX: #FFA07A

Also known as: CSS lightsalmon

Result

hsl(17.14 100.00% 73.92%) → #FFA07A

Values are shown at full precision, so converting back gives exactly #ffa07a. 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. input

    H = 17.14°, S = 100.00%, L = 73.92%
  2. 2. C

    C = (1 − |2L − 1|) × S = 0.52160
  3. 3. X

    X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.14900   (H / 60° = 0.2857, sector 0)
  4. 4. m

    m = L − C / 2 = 0.47840
  5. 5. (R′, G′, B′) + m

    (R′, G′, B′) = (0.52160, 0.14900, 0.00000)
    R = round((0.52160 + 0.47840) × 255) = 255
    G = round((0.14900 + 0.47840) × 255) = 160
    B = round((0.00000 + 0.47840) × 255) = 122
  6. 6. RGB → HEX

    #FFA07A

All formats

HEX
#ffa07a
RGB
rgb(255 160 122)
RGB (legacy)
rgb(255, 160, 122)
HSL
hsl(17.14 100.00% 73.92%) → hsl(17 100% 74%)
HWB
hwb(17 48% 0%)
OKLCH
oklch(0.794 0.125 42.4) · oklch(79.4% 0.125 42.4)
OKLab
oklab(0.794 0.092 0.084)
Lab (D50)
lab(75.22 33.50 35.33)
LCH (D50)
lch(75.22 48.69 46.52)
Display P3
color(display-p3 0.9476 0.6446 0.5061)
Linear sRGB
color(srgb-linear 1.0000 0.3515 0.1946)

Gamut: sRGB and Display P3

#FFA07A is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.125 and Display P3 reaches 0.159; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #ffa07a;
  color: rgb(255 160 122);
  color: hsl(17 100% 74%);
  color: oklch(0.794 0.125 42.4);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.794 0.125 42.4);
}
/* arbitrary values */
class="text-[#ffa07a] bg-[oklch(0.794_0.125_42.4)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9476 0.6446 0.5061); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #ffa07a 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

  • #FFB38D · oklch(0.854 0.125 42.4) · ΔL +0.06
  • #EA8D68 · oklch(0.734 0.125 42.4) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?