RGB to HEX: #FFF1F2
Also known as: Tailwind rose-50, Tailwind v3 rose-50
Result
rgb(255 241 242) → #FFF1F2
Values are shown at full precision, so converting back gives exactly #fff1f2. 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 = 255 = 15×16 + 15 → FF G = 241 = 15×16 + 1 → F1 B = 242 = 15×16 + 2 → F2
2. pairs → HEX
FF F1 F2 → #FFF1F2
All formats
- HEX
- #fff1f2
- RGB
- rgb(255 241 242)
- RGB (legacy)
- rgb(255, 241, 242)
- HSL
- hsl(355.71 100.00% 97.25%) → hsl(356 100% 97%)
- HWB
- hwb(356 95% 0%)
- OKLCH
- oklch(0.969 0.015 12.4) · oklch(96.9% 0.015 12.4)
- OKLab
- oklab(0.969 0.015 0.003)
- Lab (D50)
- lab(96.28 5.00 1.29)
- LCH (D50)
- lch(96.28 5.16 14.52)
- Display P3
- color(display-p3 0.9905 0.9470 0.9496)
- Linear sRGB
- color(srgb-linear 1.0000 0.8796 0.8879)
Gamut: sRGB and Display P3
#FFF1F2 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.015 and Display P3 reaches 0.020; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #fff1f2;
color: rgb(255 241 242);
color: hsl(356 100% 97%);
color: oklch(0.969 0.015 12.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.969 0.015 12.4);
}
/* arbitrary values */
class="text-[#fff1f2] bg-[oklch(0.969_0.015_12.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9905 0.9470 0.9496); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #fff1f2 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- red-50#FEF2F2
- lavenderblush#FFF0F5
- pink-50#FDF2F8
- seashell#FFF5EE
- neutral-100#F5F5F5
- zinc-100#F4F4F5
- stone-100#F5F5F4
- mauve-100#F3F1F3
Lighter and darker, same hue and chroma
- #FFFBFC · oklch(1.000 0.015 12.4) · ΔL +0.06
- #EBDDDE · oklch(0.909 0.015 12.4) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?