HSL to HEX: #FEFCE8
Also known as: Tailwind yellow-50, Tailwind v3 yellow-50
Result
hsl(54.55 91.67% 95.29%) → #FEFCE8
Values are shown at full precision, so converting back gives exactly #fefce8. 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 = 54.55°, S = 91.67%, L = 95.29%
2. C
C = (1 − |2L − 1|) × S = 0.08635
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.07851 (H / 60° = 0.9092, sector 0)
4. m
m = L − C / 2 = 0.90972
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.08635, 0.07851, 0.00000) R = round((0.08635 + 0.90972) × 255) = 254 G = round((0.07851 + 0.90972) × 255) = 252 B = round((0.00000 + 0.90972) × 255) = 232
6. RGB → HEX
#FEFCE8
All formats
- HEX
- #fefce8
- RGB
- rgb(254 252 232)
- RGB (legacy)
- rgb(254, 252, 232)
- HSL
- hsl(54.55 91.67% 95.29%) → hsl(55 92% 95%)
- HWB
- hwb(55 91% 0%)
- OKLCH
- oklch(0.987 0.026 102.2) · oklch(98.7% 0.026 102.2)
- OKLab
- oklab(0.987 -0.006 0.026)
- Lab (D50)
- lab(98.72 -1.81 9.87)
- LCH (D50)
- lch(98.72 10.03 100.37)
- Display P3
- color(display-p3 0.9947 0.9885 0.9173)
- Linear sRGB
- color(srgb-linear 0.9911 0.9734 0.8070)
Gamut: sRGB and Display P3
#FEFCE8 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.034 and Display P3 reaches 0.038; this color uses 77% of the sRGB chroma available.
CSS snippets
.element {
color: #fefce8;
color: rgb(254 252 232);
color: hsl(55 92% 95%);
color: oklch(0.987 0.026 102.2);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.987 0.026 102.2);
}
/* arbitrary values */
class="text-[#fefce8] bg-[oklch(0.987_0.026_102.2)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9947 0.9885 0.9173); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #fefce8 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- amber-50#FFFBEB
- lime-50#F7FEE7
- ivory#FFFFF0
- floralwhite#FFFAF0
- lightyellow#FFFFE0
- cornsilk#FFF8DC
- orange-50#FFF7ED
- oldlace#FDF5E6
Lighter and darker, same hue and chroma
- #FFFFEC · oklch(1.000 0.026 102.2) · ΔL +0.06
- #EAE8D4 · oklch(0.927 0.026 102.2) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?