#FEF799#FEF799

#FEF799 is a very light, moderate yellow. Relative luminance 0.899; OKLCH L 96.1% C 0.116 H 104.7°. Best body text is #000000 at 18.98:1 contrast (WCAG AA passes).

Color values

HEX#FEF799
RGBrgb(254, 247, 153)
HSLhsl(56, 98%, 80%)
HSVhsv(56, 40%, 100%)
CMYKcmyk(0%, 2.8%, 39.8%, 0.4%)
CIE-LABlab(95.95, -10.70, 45.98)
CIE-LCHlch(95.95, 47.20, 103.10°)
OKLaboklab(96.14% -0.0293 0.1119)
OKLCHoklch(96.14% 0.116 104.7)
XYZxyz(79.8850, 89.8942, 43.2740)
Luminance0.8989 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF799 #99A0FE
analogous
#FEC599 #FEF799 #D2FE99
triadic
#FEF799 #99FEF7 #F799FE
tetradic
#FEF799 #99FEC5 #99A0FE #FE99D2
square
#FEF799 #99FEC5 #99A0FE #FE99D2
split-complementary
#FEF799 #99D2FE #C599FE
monochromatic
#FDED20 #FDF25C #FEF799 #FFFCD6 #FFFDE1

Accessibility & contrast

On white

1.11
#FEF799 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.98
#FEF799 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF799
18.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF799#FFFFFF#000000##000000
##FEF7991.001.1118.9818.98
#FFFFFF1.111.0021.0021.00
#00000018.9821.001.001.00
##00000018.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF192
Deuteranopia (green-blind)
#FFF69D
Tritanopia (blue-blind)
#FFECE0
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fef799;
/* rgb */ color: rgb(254, 247, 153);
/* oklch */ color: oklch(96.1% 0.116 104.7);
Tailwind
colors: {
  custom: {
    50: '#fff9b8',
    500: '#fef799',
    950: '#000000',
  },
}
SCSS
$custom: #fef799;
$custom-light: #fff9b8;
$custom-dark: #000000;
JSON
{
  "hex": "#fef799",
  "rgb": {
    "r": 254,
    "g": 247,
    "b": 153
  },
  "hsl": {
    "h": 55.842,
    "s": 98.058,
    "l": 79.804
  },
  "oklch": {
    "l": 0.96138,
    "c": 0.11571,
    "h": 104.7
  },
  "luminance": 0.89892
}

Semantic roles & 50–950 ramp

primary
#FEF799
secondary
#5B64E0
accent
#10E600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #FEF799

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

Preview Lab → · Contrast checker → · Palette generator →

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