#F8F798#F8F798

#F8F798 is a very light, moderate yellow. Relative luminance 0.887; OKLCH L 95.6% C 0.117 H 107.9°. Best body text is #000000 at 18.75:1 contrast (WCAG AA passes).

Color values

HEX#F8F798
RGBrgb(248, 247, 152)
HSLhsl(59, 87%, 78%)
HSVhsv(59, 39%, 97%)
CMYKcmyk(0%, 0.4%, 38.7%, 2.7%)
CIE-LABlab(95.47, -13.09, 45.76)
CIE-LCHlch(95.47, 47.60, 105.97°)
OKLaboklab(95.64% -0.036 0.1115)
OKLCHoklch(95.64% 0.117 107.9)
XYZxyz(77.6408, 88.7466, 42.7395)
Luminance0.8874 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F798 #9899F8
analogous
#F8C798 #F8F798 #C9F898
triadic
#F8F798 #98F8F7 #F798F8
tetradic
#F8F798 #98F8C7 #9899F8 #F898C9
square
#F8F798 #98F8C7 #9899F8 #F898C9
split-complementary
#F8F798 #98C9F8 #C798F8
monochromatic
#F0EE25 #F4F35F #F8F798 #FCFBD1 #FDFDE2

Accessibility & contrast

On white

1.12
#F8F798 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.75
#F8F798 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F798
18.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F798#FFFFFF#000000##000000
##F8F7981.001.1218.7518.75
#FFFFFF1.121.0021.0021.00
#00000018.7521.001.001.00
##00000018.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF091
Deuteranopia (green-blind)
#FFF49C
Tritanopia (blue-blind)
#FFECE0
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #f8f798;
/* rgb */ color: rgb(248, 247, 152);
/* oklch */ color: oklch(95.6% 0.117 107.9);
Tailwind
colors: {
  custom: {
    50: '#fcf9b7',
    500: '#f8f798',
    950: '#000000',
  },
}
SCSS
$custom: #f8f798;
$custom-light: #fcf9b7;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f798",
  "rgb": {
    "r": 248,
    "g": 247,
    "b": 152
  },
  "hsl": {
    "h": 59.375,
    "s": 87.273,
    "l": 78.431
  },
  "oklch": {
    "l": 0.9564,
    "c": 0.11712,
    "h": 107.9
  },
  "luminance": 0.88745
}

Semantic roles & 50–950 ramp

primary
#F8F798
secondary
#5C5ED8
accent
#04E402
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #F8F798

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

Preview Lab → · Contrast checker → · Palette generator →

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