#F8F298#F8F298

#F8F298 is a very light, moderate yellow. Relative luminance 0.857; OKLCH L 94.6% C 0.112 H 105.0°. Best body text is #000000 at 18.15:1 contrast (WCAG AA passes).

Color values

HEX#F8F298
RGBrgb(248, 242, 152)
HSLhsl(56, 87%, 78%)
HSVhsv(56, 39%, 97%)
CMYKcmyk(0%, 2.4%, 38.7%, 2.7%)
CIE-LABlab(94.20, -10.63, 44.13)
CIE-LCHlch(94.20, 45.40, 103.55°)
OKLaboklab(94.63% -0.0289 0.1077)
OKLCHoklch(94.63% 0.112 105)
XYZxyz(76.1322, 85.7295, 42.2367)
Luminance0.8573 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F298 #989EF8
analogous
#F8C298 #F8F298 #CEF898
triadic
#F8F298 #98F8F2 #F298F8
tetradic
#F8F298 #98F8C2 #989EF8 #F898CE
square
#F8F298 #98F8C2 #989EF8 #F898CE
split-complementary
#F8F298 #98CEF8 #C298F8
monochromatic
#F0E425 #F4EB5F #F8F298 #FCF9D1 #FDFBE2

Accessibility & contrast

On white

1.16
#F8F298 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.15
#F8F298 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F298
18.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F298#FFFFFF#000000##000000
##F8F2981.001.1618.1518.15
#FFFFFF1.161.0021.0021.00
#00000018.1521.001.001.00
##00000018.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC91
Deuteranopia (green-blind)
#FFF09C
Tritanopia (blue-blind)
#FFE7DC
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #f8f298;
/* rgb */ color: rgb(248, 242, 152);
/* oklch */ color: oklch(94.6% 0.112 105.0);
Tailwind
colors: {
  custom: {
    50: '#fcf6b7',
    500: '#f8f298',
    950: '#000000',
  },
}
SCSS
$custom: #f8f298;
$custom-light: #fcf6b7;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f298",
  "rgb": {
    "r": 248,
    "g": 242,
    "b": 152
  },
  "hsl": {
    "h": 56.25,
    "s": 87.273,
    "l": 78.431
  },
  "oklch": {
    "l": 0.94625,
    "c": 0.11156,
    "h": 105
  },
  "luminance": 0.85728
}

Semantic roles & 50–950 ramp

primary
#F8F298
secondary
#5C64D8
accent
#10E402
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #F8F298

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

Preview Lab → · Contrast checker → · Palette generator →

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