#FEF9E2#FEF9E2

#FEF9E2 is a very light, muted yellow. Relative luminance 0.943; OKLCH L 98.0% C 0.031 H 96.9°. Best body text is #000000 at 19.86:1 contrast (WCAG AA passes).

Color values

HEX#FEF9E2
RGBrgb(254, 249, 226)
HSLhsl(49, 93%, 94%)
HSVhsv(49, 11%, 100%)
CMYKcmyk(0%, 2%, 11%, 0.4%)
CIE-LABlab(97.76, -2.14, 11.63)
CIE-LCHlch(97.76, 11.83, 100.42°)
OKLaboklab(97.99% -0.0036 0.0303)
OKLCHoklch(97.99% 0.031 96.9)
XYZxyz(88.4748, 94.3140, 85.4803)
Luminance0.9431 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF9E2 #E2E7FE
analogous
#FEEBE2 #FEF9E2 #F5FEE2
triadic
#FEF9E2 #E2FEF9 #F9E2FE
tetradic
#FEF9E2 #E2FEEB #E2E7FE #FEE2F5
square
#FEF9E2 #E2FEEB #E2E7FE #FEE2F5
split-complementary
#FEF9E2 #E2F5FE #EBE2FE
monochromatic
#FAE16C #FCEDA7 #FEF9E1 #FEF9E1 #FEF9E1

Accessibility & contrast

On white

1.06
#FEF9E2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.86
#FEF9E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF9E2
19.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF9E2#FFFFFF#000000##000000
##FEF9E21.001.0619.8619.86
#FFFFFF1.061.0021.0021.00
#00000019.8621.001.001.00
##00000019.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FEF7E1
Deuteranopia (green-blind)
#FFF9E3
Tritanopia (blue-blind)
#FFF5F2
Achromatopsia (no color)
#F9F9F9

Design tokens & code

CSS
--color: #fef9e2;
/* rgb */ color: rgb(254, 249, 226);
/* oklch */ color: oklch(98.0% 0.031 96.9);
Tailwind
colors: {
  custom: {
    50: '#fefbeb',
    500: '#fef9e2',
    950: '#000000',
  },
}
SCSS
$custom: #fef9e2;
$custom-light: #fefbeb;
$custom-dark: #000000;
JSON
{
  "hex": "#fef9e2",
  "rgb": {
    "r": 254,
    "g": 249,
    "b": 226
  },
  "hsl": {
    "h": 49.286,
    "s": 93.333,
    "l": 94.118
  },
  "oklch": {
    "l": 0.97993,
    "c": 0.03054,
    "h": 96.9
  },
  "luminance": 0.94313
}

Semantic roles & 50–950 ramp

primary
#FEF9E2
secondary
#9AA9EA
accent
#29E600
background
#FFFFFE
surface
#FFFFFD
border
#D7D7D5
text
#171716
muted
#858584

Preview Lab

Preview with #FEF9E2

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

Preview Lab → · Contrast checker → · Palette generator →

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