#F8FA98#F8FA98

#F8FA98 is a very light, vivid yellow. Relative luminance 0.906; OKLCH L 96.3% C 0.121 H 109.5°. Best body text is #000000 at 19.12:1 contrast (WCAG AA passes).

Color values

HEX#F8FA98
RGBrgb(248, 250, 152)
HSLhsl(61, 91%, 79%)
HSVhsv(61, 39%, 98%)
CMYKcmyk(0.8%, 0%, 39.2%, 2%)
CIE-LABlab(96.24, -14.56, 46.73)
CIE-LCHlch(96.24, 48.95, 107.31°)
OKLaboklab(96.25% -0.0402 0.1137)
OKLCHoklch(96.25% 0.121 109.5)
XYZxyz(78.5655, 90.5962, 43.0478)
Luminance0.9060 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8FA98 #9A98FA
analogous
#FACB98 #F8FA98 #C7FA98
triadic
#F8FA98 #98F8FA #FA98F8
tetradic
#F8FA98 #98FACB #9A98FA #FA98C7
square
#F8FA98 #98FACB #9A98FA #FA98C7
split-complementary
#F8FA98 #98C7FA #CB98FA
monochromatic
#F0F423 #F4F75E #F8FA98 #FCFDD2 #FDFEE2

Accessibility & contrast

On white

1.10
#F8FA98 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.12
#F8FA98 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8FA98
19.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8FA98#FFFFFF#000000##000000
##F8FA981.001.1019.1219.12
#FFFFFF1.101.0021.0021.00
#00000019.1221.001.001.00
##00000019.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF290
Deuteranopia (green-blind)
#FFF69C
Tritanopia (blue-blind)
#FFEFE2
Achromatopsia (no color)
#F4F4F4

Design tokens & code

CSS
--color: #f8fa98;
/* rgb */ color: rgb(248, 250, 152);
/* oklch */ color: oklch(96.3% 0.121 109.5);
Tailwind
colors: {
  custom: {
    50: '#fcfbb7',
    500: '#f8fa98',
    950: '#000000',
  },
}
SCSS
$custom: #f8fa98;
$custom-light: #fcfbb7;
$custom-dark: #000000;
JSON
{
  "hex": "#f8fa98",
  "rgb": {
    "r": 248,
    "g": 250,
    "b": 152
  },
  "hsl": {
    "h": 61.224,
    "s": 90.741,
    "l": 78.824
  },
  "oklch": {
    "l": 0.96252,
    "c": 0.12056,
    "h": 109.5
  },
  "luminance": 0.90595
}

Semantic roles & 50–950 ramp

primary
#F8FA98
secondary
#5E5CDB
accent
#00E605
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #F8FA98

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

Preview Lab → · Contrast checker → · Palette generator →

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