#F8E979#F8E979

#F8E979 is a very light, vivid yellow. Relative luminance 0.796; OKLCH L 92.4% C 0.134 H 101.8°. Best body text is #000000 at 16.92:1 contrast (WCAG AA passes).

Color values

HEX#F8E979
RGBrgb(248, 233, 121)
HSLhsl(53, 90%, 72%)
HSVhsv(53, 51%, 97%)
CMYKcmyk(0%, 6%, 51.2%, 2.7%)
CIE-LABlab(91.51, -9.10, 55.66)
CIE-LCHlch(91.51, 56.40, 99.28°)
OKLaboklab(92.37% -0.0273 0.1314)
OKLCHoklch(92.37% 0.134 101.8)
XYZxyz(71.3037, 79.6172, 29.6971)
Luminance0.7962 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E979 #7988F8
analogous
#F8A979 #F8E979 #C8F879
triadic
#F8E979 #79F8E9 #E979F8
tetradic
#F8E979 #79F8A9 #7988F8 #F879C8
square
#F8E979 #79F8A9 #7988F8 #F879C8
split-complementary
#F8E979 #79C8F8 #A979F8
monochromatic
#EAD00C #F5DF3F #F8E979 #FBF3B3 #FDFAE2

Accessibility & contrast

On white

1.24
#F8E979 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.92
#F8E979 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E979
16.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E979#FFFFFF#000000##000000
##F8E9791.001.2416.9216.92
#FFFFFF1.241.0021.0021.00
#00000016.9221.001.001.00
##00000016.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FBE36F
Deuteranopia (green-blind)
#FFEA7E
Tritanopia (blue-blind)
#FFDCCF
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #f8e979;
/* rgb */ color: rgb(248, 233, 121);
/* oklch */ color: oklch(92.4% 0.134 101.8);
Tailwind
colors: {
  custom: {
    50: '#fdefa2',
    500: '#f8e979',
    950: '#000000',
  },
}
SCSS
$custom: #f8e979;
$custom-light: #fdefa2;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e979",
  "rgb": {
    "r": 248,
    "g": 233,
    "b": 121
  },
  "hsl": {
    "h": 52.913,
    "s": 90.071,
    "l": 72.353
  },
  "oklch": {
    "l": 0.9237,
    "c": 0.13418,
    "h": 101.8
  },
  "luminance": 0.79615
}

Semantic roles & 50–950 ramp

primary
#F8E979
secondary
#4153D4
accent
#1BE600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #F8E979

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

Preview Lab → · Contrast checker → · Palette generator →

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