#F8EF98#F8EF98

#F8EF98 is a very light, moderate yellow. Relative luminance 0.840; OKLCH L 94.0% C 0.108 H 103.2°. Best body text is #000000 at 17.79:1 contrast (WCAG AA passes).

Color values

HEX#F8EF98
RGBrgb(248, 239, 152)
HSLhsl(54, 87%, 78%)
HSVhsv(54, 39%, 97%)
CMYKcmyk(0%, 3.6%, 38.7%, 2.7%)
CIE-LABlab(93.43, -9.15, 43.16)
CIE-LCHlch(93.43, 44.11, 101.97°)
OKLaboklab(94.02% -0.0247 0.1055)
OKLCHoklch(94.02% 0.108 103.2)
XYZxyz(75.2467, 83.9584, 41.9415)
Luminance0.8396 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8EF98 #98A1F8
analogous
#F8BF98 #F8EF98 #D1F898
triadic
#F8EF98 #98F8EF #EF98F8
tetradic
#F8EF98 #98F8BF #98A1F8 #F898D1
square
#F8EF98 #98F8BF #98A1F8 #F898D1
split-complementary
#F8EF98 #98D1F8 #BF98F8
monochromatic
#F0DD25 #F4E65F #F8EF98 #FCF8D1 #FDFBE2

Accessibility & contrast

On white

1.18
#F8EF98 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.79
#F8EF98 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8EF98
17.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8EF98#FFFFFF#000000##000000
##F8EF981.001.1817.7917.79
#FFFFFF1.181.0021.0021.00
#00000017.7921.001.001.00
##00000017.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FEE991
Deuteranopia (green-blind)
#FFEE9C
Tritanopia (blue-blind)
#FFE4D9
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #f8ef98;
/* rgb */ color: rgb(248, 239, 152);
/* oklch */ color: oklch(94.0% 0.108 103.2);
Tailwind
colors: {
  custom: {
    50: '#fcf4b7',
    500: '#f8ef98',
    950: '#000000',
  },
}
SCSS
$custom: #f8ef98;
$custom-light: #fcf4b7;
$custom-dark: #000000;
JSON
{
  "hex": "#f8ef98",
  "rgb": {
    "r": 248,
    "g": 239,
    "b": 152
  },
  "hsl": {
    "h": 54.375,
    "s": 87.273,
    "l": 78.431
  },
  "oklch": {
    "l": 0.94019,
    "c": 0.10835,
    "h": 103.2
  },
  "luminance": 0.83956
}

Semantic roles & 50–950 ramp

primary
#F8EF98
secondary
#5C68D8
accent
#17E402
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #F8EF98

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

Preview Lab → · Contrast checker → · Palette generator →

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