#F8D979#F8D979

#F8D979 is a very light, vivid yellow. Relative luminance 0.710; OKLCH L 89.2% C 0.121 H 91.9°. Best body text is #000000 at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#F8D979
RGBrgb(248, 217, 121)
HSLhsl(45, 90%, 72%)
HSVhsv(45, 51%, 97%)
CMYKcmyk(0%, 12.5%, 51.2%, 2.7%)
CIE-LABlab(87.47, -1.04, 50.83)
CIE-LCHlch(87.47, 50.84, 91.18°)
OKLaboklab(89.17% -0.0041 0.1208)
OKLCHoklch(89.17% 0.121 91.9)
XYZxyz(66.9779, 70.9657, 28.2552)
Luminance0.7096 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8D979 #7998F8
analogous
#F89979 #F8D979 #D8F879
triadic
#F8D979 #79F8D9 #D979F8
tetradic
#F8D979 #79F899 #7998F8 #F879D8
square
#F8D979 #79F899 #7998F8 #F879D8
split-complementary
#F8D979 #79D8F8 #9979F8
monochromatic
#EAB40C #F5C93F #F8D979 #FBE9B3 #FDF7E2

Accessibility & contrast

On white

1.38
#F8D979 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.19
#F8D979 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8D979
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8D979#FFFFFF#000000##000000
##F8D9791.001.3815.1915.19
#FFFFFF1.381.0021.0021.00
#00000015.1921.001.001.00
##00000015.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD671
Deuteranopia (green-blind)
#F3DF7D
Tritanopia (blue-blind)
#FFCBC2
Achromatopsia (no color)
#DBDBDB

Design tokens & code

CSS
--color: #f8d979;
/* rgb */ color: rgb(248, 217, 121);
/* oklch */ color: oklch(89.2% 0.121 91.9);
Tailwind
colors: {
  custom: {
    50: '#fde4a2',
    500: '#f8d979',
    950: '#000000',
  },
}
SCSS
$custom: #f8d979;
$custom-light: #fde4a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f8d979",
  "rgb": {
    "r": 248,
    "g": 217,
    "b": 121
  },
  "hsl": {
    "h": 45.354,
    "s": 90.071,
    "l": 72.353
  },
  "oklch": {
    "l": 0.89169,
    "c": 0.12084,
    "h": 91.9
  },
  "luminance": 0.70963
}

Semantic roles & 50–950 ramp

primary
#F8D979
secondary
#4165D4
accent
#38E600
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150F
muted
#868480

Preview Lab

Preview with #F8D979

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

Preview Lab → · Contrast checker → · Palette generator →

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