#F8F498#F8F498

#F8F498 is a very light, moderate yellow. Relative luminance 0.869; OKLCH L 95.0% C 0.114 H 106.2°. Best body text is #000000 at 18.38:1 contrast (WCAG AA passes).

Color values

HEX#F8F498
RGBrgb(248, 244, 152)
HSLhsl(58, 87%, 78%)
HSVhsv(58, 39%, 97%)
CMYKcmyk(0%, 1.6%, 38.7%, 2.7%)
CIE-LABlab(94.71, -11.62, 44.78)
CIE-LCHlch(94.71, 46.27, 104.55°)
OKLaboklab(95.03% -0.0318 0.1092)
OKLCHoklch(95.03% 0.114 106.2)
XYZxyz(76.7307, 86.9266, 42.4362)
Luminance0.8692 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F498 #989CF8
analogous
#F8C498 #F8F498 #CCF898
triadic
#F8F498 #98F8F4 #F498F8
tetradic
#F8F498 #98F8C4 #989CF8 #F898CC
square
#F8F498 #98F8C4 #989CF8 #F898CC
split-complementary
#F8F498 #98CCF8 #C498F8
monochromatic
#F0E825 #F4EE5F #F8F498 #FCFAD1 #FDFCE2

Accessibility & contrast

On white

1.14
#F8F498 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.38
#F8F498 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F498
18.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F498#FFFFFF#000000##000000
##F8F4981.001.1418.3818.38
#FFFFFF1.141.0021.0021.00
#00000018.3821.001.001.00
##00000018.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED91
Deuteranopia (green-blind)
#FFF29C
Tritanopia (blue-blind)
#FFE9DD
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #f8f498;
/* rgb */ color: rgb(248, 244, 152);
/* oklch */ color: oklch(95.0% 0.114 106.2);
Tailwind
colors: {
  custom: {
    50: '#fcf7b7',
    500: '#f8f498',
    950: '#000000',
  },
}
SCSS
$custom: #f8f498;
$custom-light: #fcf7b7;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f498",
  "rgb": {
    "r": 248,
    "g": 244,
    "b": 152
  },
  "hsl": {
    "h": 57.5,
    "s": 87.273,
    "l": 78.431
  },
  "oklch": {
    "l": 0.95031,
    "c": 0.11376,
    "h": 106.2
  },
  "luminance": 0.86925
}

Semantic roles & 50–950 ramp

primary
#F8F498
secondary
#5C62D8
accent
#0BE402
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #F8F498

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

Preview Lab → · Contrast checker → · Palette generator →

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