HSL to HEX: #FAF0E6
Also known as: CSS linen
Result
hsl(30.00 66.67% 94.12%) → #FAF0E6
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. input
H = 30.00°, S = 66.67%, L = 94.12%
2. C
C = (1 − |2L − 1|) × S = 0.07840
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.03920 (H / 60° = 0.5000, sector 0)
4. m
m = L − C / 2 = 0.90200
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.07840, 0.03920, 0.00000) R = round((0.07840 + 0.90200) × 255) = 250 G = round((0.03920 + 0.90200) × 255) = 240 B = round((0.00000 + 0.90200) × 255) = 230
6. RGB → HEX
#FAF0E6
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?