OKLCH to HEX: #FFA07A

Also known as: CSS lightsalmon

Result

oklch(0.79376 0.12483 42.425) → #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

    oklch(0.79376 0.12483 42.425)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.09214
    b = C·sin H = 0.08421
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.848454
    m′ = L − 0.1056·a − 0.0639·b = 0.778656
    s′ = L − 0.0895·a − 1.2915·b = 0.676754
  4. 4. cube

    l = 0.848454³ = 0.610780
    m = 0.778656³ = 0.472103
    s = 0.676754³ = 0.309951
  5. 5. LMS → linear sRGB

    R = 4.0767·l − 3.3077·m + 0.2310·s = 1.000003
    G = −1.2684·l + 2.6098·m − 0.3413·s = 0.351544
    B = −0.0042·l − 0.7034·m + 1.7076·s = 0.194628
  6. 6. linear → sRGB, × 255

    R = 1.00000 × 255 = 255.00 → 255
    G = 0.62746 × 255 = 160.00 → 160
    B = 0.47844 × 255 = 122.00 → 122
  7. 7. 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?