RGB to HEX: #FEFCE8
Also known as: Tailwind yellow-50, Tailwind v3 yellow-50
Result
rgb(254 252 232) → #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. base 10 → base 16
R = 254 = 15×16 + 14 → FE G = 252 = 15×16 + 12 → FC B = 232 = 14×16 + 8 → E8
2. pairs → HEX
FE FC E8 → #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?