HEX to RGB: #FFA2A2

Also known as: Tailwind red-300

Result

#FFA2A2 → rgb(255 162 162)

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. HEX → pairs

    #FFA2A2 → FF | A2 | A2
  2. 2. base 16 → base 10

    R = FF₁₆ = 15×16 + 15 = 255
    G = A2₁₆ = 10×16 + 2 = 162
    B = A2₁₆ = 10×16 + 2 = 162
  3. 3. RGB

    rgb(255 162 162)

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?