#FEF7CD#FEF7CD

#FEF7CD is a very light, muted yellow. Relative luminance 0.920; OKLCH L 97.1% C 0.055 H 99.5°. Best body text is #000000 at 19.40:1 contrast (WCAG AA passes).

Color values

HEX#FEF7CD
RGBrgb(254, 247, 205)
HSLhsl(51, 96%, 90%)
HSVhsv(51, 19%, 100%)
CMYKcmyk(0%, 2.8%, 19.3%, 0.4%)
CIE-LABlab(96.82, -4.29, 21.07)
CIE-LCHlch(96.82, 21.50, 101.50°)
OKLaboklab(97.11% -0.009 0.054)
OKLCHoklch(97.11% 0.055 99.5)
XYZxyz(85.1528, 92.0014, 71.0180)
Luminance0.9200 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF7CD #CDD4FE
analogous
#FEDFCD #FEF7CD #ECFECD
triadic
#FEF7CD #CDFEF7 #F7CDFE
tetradic
#FEF7CD #CDFEDF #CDD4FE #FECDEC
square
#FEF7CD #CDFEDF #CDD4FE #FECDEC
split-complementary
#FEF7CD #CDECFE #DFCDFE
monochromatic
#FCE455 #FDED91 #FEF7CD #FEFAE1 #FEFAE1

Accessibility & contrast

On white

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

On black

19.40
#FEF7CD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF7CD
19.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF7CD#FFFFFF#000000##000000
##FEF7CD1.001.0819.4019.40
#FFFFFF1.081.0021.0021.00
#00000019.4021.001.001.00
##00000019.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF4CA
Deuteranopia (green-blind)
#FFF7CE
Tritanopia (blue-blind)
#FFF1EB
Achromatopsia (no color)
#F6F6F6

Design tokens & code

CSS
--color: #fef7cd;
/* rgb */ color: rgb(254, 247, 205);
/* oklch */ color: oklch(97.1% 0.055 99.5);
Tailwind
colors: {
  custom: {
    50: '#fff9dc',
    500: '#fef7cd',
    950: '#000000',
  },
}
SCSS
$custom: #fef7cd;
$custom-light: #fff9dc;
$custom-dark: #000000;
JSON
{
  "hex": "#fef7cd",
  "rgb": {
    "r": 254,
    "g": 247,
    "b": 205
  },
  "hsl": {
    "h": 51.429,
    "s": 96.078,
    "l": 90
  },
  "oklch": {
    "l": 0.97109,
    "c": 0.05479,
    "h": 99.5
  },
  "luminance": 0.92
}

Semantic roles & 50–950 ramp

primary
#FEF7CD
secondary
#8895E8
accent
#21E600
background
#FFFFFE
surface
#FFFFFC
border
#D7D7D5
text
#181715
muted
#868584

Preview Lab

Preview with #FEF7CD

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

Preview Lab → · Contrast checker → · Palette generator →

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