#FEF2BB

A color in the Yellow, Gold family

#fef2bb is a color in the Yellow, Gold family: RGB(254, 242, 187), HSL(49°, 97%, 86%), CMYK(0%, 5%, 26%, 0%). Closest named color: lemonchiffon. Contrast is 1.13:1 on white and 18.63:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#fef2bb
RGBrgb(254 242 187)
RGB (legacy)rgb(254, 242, 187)
RGB %rgb(100% 95% 73%)
HSLhsl(49 97% 86%)
HSV / HSBhsv(49, 26%, 100%)
HWBhwb(49 73% 0%)
CMYKcmyk(0%, 5%, 26%, 0%)
CIELAB (D50)lab(95.46 -1.92 28.19)
LCHlch(95.46 28.25 93.9)
OKLaboklab(0.9574 -0.009 0.071)
OKLCHoklch(0.9574 0.0715 97.21)
Decimal16708283

Properties

Color ToneYellow, Gold
Closest named colorlemonchiffon ΔE 2.5
Closest web-safe color#ffffcc
Hue49°
Saturation (HSL / HSV)97% / 26%
Lightness (HSL)86%
Brightness or Value (HSV)100%
Luminance (Rec.601 / Rec.709)94% / 94%
Relative luminance (WCAG)0.8816
Red / Green / Blue254 / 242 / 187

WCAG 2.2 Contrast Ratio

On White (#ffffff)
1.13:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
18.63:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 0 / -98.9 · As background with white / black text: Lc 0 / 97.9

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #fef2bb;
  --color-brand-oklch: oklch(95.74% 0.0715 97.21);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(254 242 187 / 50%); }
/* Tailwind CSS */
<div class="bg-[#fef2bb] text-[#fef2bb] border-[#fef2bb]">