OKLCH to HEX: #FFA2A2

Also known as: Tailwind red-300

Result

oklch(0.80534 0.11091 19.782) → #FFA2A2

Values are shown at full precision, so converting back gives exactly #ffa2a2. 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.80534 0.11091 19.782)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.10436
    b = C·sin H = 0.03754
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.854804
    m′ = L − 0.1056·a − 0.0639·b = 0.791926
    s′ = L − 0.0895·a − 1.2915·b = 0.747523
  4. 4. cube

    l = 0.854804³ = 0.624597
    m = 0.791926³ = 0.496654
    s = 0.747523³ = 0.417709
  5. 5. LMS → linear sRGB

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

    R = 1.00000 × 255 = 255.00 → 255
    G = 0.63530 × 255 = 162.00 → 162
    B = 0.63530 × 255 = 162.00 → 162
  7. 7. RGB → HEX

    #FFA2A2

All formats

HEX
#ffa2a2
RGB
rgb(255 162 162)
RGB (legacy)
rgb(255, 162, 162)
HSL
hsl(0.00 100.00% 81.76%) → hsl(0 100% 82%)
HWB
hwb(0 64% 0%)
OKLCH
oklch(0.805 0.111 19.8) · oklch(80.5% 0.111 19.8)
OKLab
oklab(0.805 0.104 0.038)
Lab (D50)
lab(76.28 35.40 15.25)
LCH (D50)
lch(76.28 38.54 23.31)
Display P3
color(display-p3 0.9484 0.6519 0.6439)
Linear sRGB
color(srgb-linear 1.0000 0.3613 0.3613)

Gamut: sRGB and Display P3

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

CSS snippets

.element {
  color: #ffa2a2;
  color: rgb(255 162 162);
  color: hsl(0 100% 82%);
  color: oklch(0.805 0.111 19.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.805 0.111 19.8);
}
/* arbitrary values */
class="text-[#ffa2a2] bg-[oklch(0.805_0.111_19.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9484 0.6519 0.6439); }
}

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

  • #FFB5B5 · oklch(0.865 0.111 19.8) · ΔL +0.06
  • #EA8F90 · oklch(0.745 0.111 19.8) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?