#FEF8A1#FEF8A1

#FEF8A1 is a very light, moderate yellow. Relative luminance 0.908; OKLCH L 96.5% C 0.108 H 104.9°. Best body text is #000000 at 19.16:1 contrast (WCAG AA passes).

Color values

HEX#FEF8A1
RGBrgb(254, 248, 161)
HSLhsl(56, 98%, 81%)
HSVhsv(56, 37%, 100%)
CMYKcmyk(0%, 2.4%, 36.6%, 0.4%)
CIE-LABlab(96.32, -10.34, 42.53)
CIE-LCHlch(96.32, 43.77, 103.66°)
OKLaboklab(96.47% -0.0277 0.1044)
OKLCHoklch(96.47% 0.108 104.9)
XYZxyz(80.8746, 90.7807, 46.9734)
Luminance0.9078 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF8A1 #A1A7FE
analogous
#FECAA1 #FEF8A1 #D6FEA1
triadic
#FEF8A1 #A1FEF8 #F8A1FE
tetradic
#FEF8A1 #A1FECA #A1A7FE #FEA1D6
square
#FEF8A1 #A1FECA #A1A7FE #FEA1D6
split-complementary
#FEF8A1 #A1D6FE #CAA1FE
monochromatic
#FDEF28 #FDF364 #FEF8A1 #FFFDDE #FFFDE1

Accessibility & contrast

On white

1.10
#FEF8A1 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.16
#FEF8A1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF8A1
19.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF8A1#FFFFFF#000000##000000
##FEF8A11.001.1019.1619.16
#FFFFFF1.101.0021.0021.00
#00000019.1621.001.001.00
##00000019.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF29B
Deuteranopia (green-blind)
#FFF6A5
Tritanopia (blue-blind)
#FFEDE2
Achromatopsia (no color)
#F4F4F4

Design tokens & code

CSS
--color: #fef8a1;
/* rgb */ color: rgb(254, 248, 161);
/* oklch */ color: oklch(96.5% 0.108 104.9);
Tailwind
colors: {
  custom: {
    50: '#fffabe',
    500: '#fef8a1',
    950: '#000000',
  },
}
SCSS
$custom: #fef8a1;
$custom-light: #fffabe;
$custom-dark: #000000;
JSON
{
  "hex": "#fef8a1",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 161
  },
  "hsl": {
    "h": 56.129,
    "s": 97.895,
    "l": 81.373
  },
  "oklch": {
    "l": 0.96466,
    "c": 0.10804,
    "h": 104.9
  },
  "luminance": 0.90779
}

Semantic roles & 50–950 ramp

primary
#FEF8A1
secondary
#626AE2
accent
#0FE600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181712
muted
#868582

Preview Lab

Preview with #FEF8A1

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

Preview Lab → · Contrast checker → · Palette generator →

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