HEX to RGB: #FAF0E6
Also known as: CSS linen
Result
#FAF0E6 → rgb(250 240 230)
Values are shown at full precision, so converting back gives exactly #faf0e6. 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. HEX → pairs
#FAF0E6 → FA | F0 | E6
2. base 16 → base 10
R = FA₁₆ = 15×16 + 10 = 250 G = F0₁₆ = 15×16 + 0 = 240 B = E6₁₆ = 14×16 + 6 = 230
3. RGB
rgb(250 240 230)
All formats
- HEX
- #faf0e6
- RGB
- rgb(250 240 230)
- RGB (legacy)
- rgb(250, 240, 230)
- HSL
- hsl(30.00 66.67% 94.12%) → hsl(30 67% 94%)
- HWB
- hwb(30 90% 2%)
- OKLCH
- oklch(0.960 0.017 67.6) · oklch(96.0% 0.017 67.6)
- OKLab
- oklab(0.960 0.007 0.016)
- Lab (D50)
- lab(95.39 2.23 6.11)
- LCH (D50)
- lch(95.39 6.50 69.93)
- Display P3
- color(display-p3 0.9736 0.9425 0.9063)
- Linear sRGB
- color(srgb-linear 0.9560 0.8714 0.7913)
Gamut: sRGB and Display P3
#FAF0E6 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.028 and Display P3 reaches 0.035; this color uses 62% of the sRGB chroma available.
CSS snippets
.element {
color: #faf0e6;
color: rgb(250 240 230);
color: hsl(30 67% 94%);
color: oklch(0.960 0.017 67.6);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.960 0.017 67.6);
}
/* arbitrary values */
class="text-[#faf0e6] bg-[oklch(0.960_0.017_67.6)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9736 0.9425 0.9063); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #faf0e6 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- oldlace#FDF5E6
- olive-100#F4F4F0
- taupe-100#F3F1F1
- seashell#FFF5EE
- red-50#FEF2F2
- rose-50#FFF1F2
- mauve-100#F3F1F3
- mist-100#F1F3F3
Lighter and darker, same hue and chroma
- #FFFDF3 · oklch(1.000 0.017 67.6) · ΔL +0.06
- #E6DCD2 · oklch(0.900 0.017 67.6) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?