#FEF498#FEF498

#FEF498 is a very light, moderate yellow. Relative luminance 0.880; OKLCH L 95.5% C 0.114 H 102.9°. Best body text is #000000 at 18.61:1 contrast (WCAG AA passes).

Color values

HEX#FEF498
RGBrgb(254, 244, 152)
HSLhsl(54, 98%, 80%)
HSVhsv(54, 40%, 100%)
CMYKcmyk(0%, 3.9%, 40.2%, 0.4%)
CIE-LABlab(95.18, -9.32, 45.48)
CIE-LCHlch(95.18, 46.43, 101.58°)
OKLaboklab(95.52% -0.0254 0.1108)
OKLCHoklch(95.52% 0.114 102.9)
XYZxyz(78.8927, 88.0413, 42.5375)
Luminance0.8804 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF498 #98A2FE
analogous
#FEC198 #FEF498 #D5FE98
triadic
#FEF498 #98FEF4 #F498FE
tetradic
#FEF498 #98FEC1 #98A2FE #FE98D5
square
#FEF498 #98FEC1 #98A2FE #FE98D5
split-complementary
#FEF498 #98D5FE #C198FE
monochromatic
#FDE71F #FDEE5B #FEF498 #FFFAD5 #FFFCE1

Accessibility & contrast

On white

1.13
#FEF498 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.61
#FEF498 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF498
18.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF498#FFFFFF#000000##000000
##FEF4981.001.1318.6118.61
#FFFFFF1.131.0021.0021.00
#00000018.6121.001.001.00
##00000018.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE91
Deuteranopia (green-blind)
#FFF49C
Tritanopia (blue-blind)
#FFE8DD
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #fef498;
/* rgb */ color: rgb(254, 244, 152);
/* oklch */ color: oklch(95.5% 0.114 102.9);
Tailwind
colors: {
  custom: {
    50: '#fff7b7',
    500: '#fef498',
    950: '#000000',
  },
}
SCSS
$custom: #fef498;
$custom-light: #fff7b7;
$custom-dark: #000000;
JSON
{
  "hex": "#fef498",
  "rgb": {
    "r": 254,
    "g": 244,
    "b": 152
  },
  "hsl": {
    "h": 54.118,
    "s": 98.077,
    "l": 79.608
  },
  "oklch": {
    "l": 0.95519,
    "c": 0.11364,
    "h": 102.9
  },
  "luminance": 0.88039
}

Semantic roles & 50–950 ramp

primary
#FEF498
secondary
#5A67E0
accent
#16E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #FEF498

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

Preview Lab → · Contrast checker → · Palette generator →

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