#FEF8A7#FEF8A7

#FEF8A7 is a very light, moderate yellow. Relative luminance 0.910; OKLCH L 96.6% C 0.101 H 104.5°. Best body text is #000000 at 19.20:1 contrast (WCAG AA passes).

Color values

HEX#FEF8A7
RGBrgb(254, 248, 167)
HSLhsl(56, 98%, 83%)
HSVhsv(56, 34%, 100%)
CMYKcmyk(0%, 2.4%, 34.3%, 0.4%)
CIE-LABlab(96.41, -9.67, 39.69)
CIE-LCHlch(96.41, 40.85, 103.69°)
OKLaboklab(96.57% -0.0254 0.0981)
OKLCHoklch(96.57% 0.101 104.5)
XYZxyz(81.4164, 90.9974, 49.8271)
Luminance0.9100 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF8A7 #A7ADFE
analogous
#FECCA7 #FEF8A7 #D9FEA7
triadic
#FEF8A7 #A7FEF8 #F8A7FE
tetradic
#FEF8A7 #A7FECC #A7ADFE #FEA7D9
square
#FEF8A7 #A7FECC #A7ADFE #FEA7D9
split-complementary
#FEF8A7 #A7D9FE #CCA7FE
monochromatic
#FDEE2E #FDF36A #FEF8A7 #FFFDE1 #FFFDE1

Accessibility & contrast

On white

1.09
#FEF8A7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.20
#FEF8A7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF8A7
19.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF8A7#FFFFFF#000000##000000
##FEF8A71.001.0919.2019.20
#FFFFFF1.091.0021.0021.00
#00000019.2021.001.001.00
##00000019.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF2A1
Deuteranopia (green-blind)
#FFF7AA
Tritanopia (blue-blind)
#FFEEE3
Achromatopsia (no color)
#F5F5F5

Design tokens & code

CSS
--color: #fef8a7;
/* rgb */ color: rgb(254, 248, 167);
/* oklch */ color: oklch(96.6% 0.101 104.5);
Tailwind
colors: {
  custom: {
    50: '#fffac2',
    500: '#fef8a7',
    950: '#000000',
  },
}
SCSS
$custom: #fef8a7;
$custom-light: #fffac2;
$custom-dark: #000000;
JSON
{
  "hex": "#fef8a7",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 167
  },
  "hsl": {
    "h": 55.862,
    "s": 97.753,
    "l": 82.549
  },
  "oklch": {
    "l": 0.96566,
    "c": 0.1013,
    "h": 104.5
  },
  "luminance": 0.90996
}

Semantic roles & 50–950 ramp

primary
#FEF8A7
secondary
#676FE2
accent
#10E600
background
#FFFFFD
surface
#FFFFF9
border
#D7D7D2
text
#181712
muted
#868582

Preview Lab

Preview with #FEF8A7

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

Preview Lab → · Contrast checker → · Palette generator →

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