#FEF9BA#FEF9BA

#FEF9BA is a very light, moderate yellow. Relative luminance 0.924; OKLCH L 97.1% C 0.080 H 104.0°. Best body text is #000000 at 19.47:1 contrast (WCAG AA passes).

Color values

HEX#FEF9BA
RGBrgb(254, 249, 186)
HSLhsl(56, 97%, 86%)
HSVhsv(56, 27%, 100%)
CMYKcmyk(0%, 2%, 26.8%, 0.4%)
CIE-LABlab(96.97, -7.86, 30.93)
CIE-LCHlch(96.97, 31.91, 104.25°)
OKLaboklab(97.11% -0.0194 0.0779)
OKLCHoklch(97.11% 0.08 104)
XYZxyz(83.6119, 92.3688, 59.8692)
Luminance0.9237 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF9BA #BABFFE
analogous
#FED7BA #FEF9BA #E1FEBA
triadic
#FEF9BA #BAFEF9 #F9BAFE
tetradic
#FEF9BA #BAFED7 #BABFFE #FEBAE1
square
#FEF9BA #BAFED7 #BABFFE #FEBAE1
split-complementary
#FEF9BA #BAE1FE #D7BAFE
monochromatic
#FCEF41 #FDF47E #FEF9BA #FFFCE1 #FFFCE1

Accessibility & contrast

On white

1.08
#FEF9BA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.47
#FEF9BA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF9BA
19.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF9BA#FFFFFF#000000##000000
##FEF9BA1.001.0819.4719.47
#FFFFFF1.081.0021.0021.00
#00000019.4721.001.001.00
##00000019.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF4B6
Deuteranopia (green-blind)
#FFF8BC
Tritanopia (blue-blind)
#FFF1E8
Achromatopsia (no color)
#F6F6F6

Design tokens & code

CSS
--color: #fef9ba;
/* rgb */ color: rgb(254, 249, 186);
/* oklch */ color: oklch(97.1% 0.080 104.0);
Tailwind
colors: {
  custom: {
    50: '#fffbcf',
    500: '#fef9ba',
    950: '#000000',
  },
}
SCSS
$custom: #fef9ba;
$custom-light: #fffbcf;
$custom-dark: #000000;
JSON
{
  "hex": "#fef9ba",
  "rgb": {
    "r": 254,
    "g": 249,
    "b": 186
  },
  "hsl": {
    "h": 55.588,
    "s": 97.143,
    "l": 86.275
  },
  "oklch": {
    "l": 0.97112,
    "c": 0.08024,
    "h": 104
  },
  "luminance": 0.92367
}

Semantic roles & 50–950 ramp

primary
#FEF9BA
secondary
#777FE5
accent
#11E600
background
#FFFFFE
surface
#FFFFFB
border
#D7D7D4
text
#181713
muted
#868583

Preview Lab

Preview with #FEF9BA

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#FEF9BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva