#F9E98C#F9E98C

#F9E98C is a very light, moderate yellow. Relative luminance 0.803; OKLCH L 92.7% C 0.115 H 99.7°. Best body text is #000000 at 17.06:1 contrast (WCAG AA passes).

Color values

HEX#F9E98C
RGBrgb(249, 233, 140)
HSLhsl(51, 90%, 76%)
HSVhsv(51, 44%, 98%)
CMYKcmyk(0%, 6.4%, 43.8%, 2.4%)
CIE-LABlab(91.83, -6.99, 47.02)
CIE-LCHlch(91.83, 47.53, 98.46°)
OKLaboklab(92.71% -0.0195 0.1136)
OKLCHoklch(92.71% 0.115 99.7)
XYZxyz(72.9412, 80.3134, 36.4656)
Luminance0.8031 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9E98C #8C9CF9
analogous
#F9B38C #F9E98C #D3F98C
triadic
#F9E98C #8CF9E9 #E98CF9
tetradic
#F9E98C #8CF9B3 #8C9CF9 #F98CD3
square
#F9E98C #8CF9B3 #8C9CF9 #F98CD3
split-complementary
#F9E98C #8CD3F9 #B38CF9
monochromatic
#F3D318 #F6DE52 #F9E98C #FCF4C6 #FDF9E2

Accessibility & contrast

On white

1.23
#F9E98C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.06
#F9E98C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9E98C
17.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9E98C#FFFFFF#000000##000000
##F9E98C1.001.2317.0617.06
#FFFFFF1.231.0021.0021.00
#00000017.0621.001.001.00
##00000017.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#F9E485
Deuteranopia (green-blind)
#FEEA90
Tritanopia (blue-blind)
#FFDDD2
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #f9e98c;
/* rgb */ color: rgb(249, 233, 140);
/* oklch */ color: oklch(92.7% 0.115 99.7);
Tailwind
colors: {
  custom: {
    50: '#fdefaf',
    500: '#f9e98c',
    950: '#000000',
  },
}
SCSS
$custom: #f9e98c;
$custom-light: #fdefaf;
$custom-dark: #000000;
JSON
{
  "hex": "#f9e98c",
  "rgb": {
    "r": 249,
    "g": 233,
    "b": 140
  },
  "hsl": {
    "h": 51.193,
    "s": 90.083,
    "l": 76.275
  },
  "oklch": {
    "l": 0.92712,
    "c": 0.11529,
    "h": 99.7
  },
  "luminance": 0.80311
}

Semantic roles & 50–950 ramp

primary
#F9E98C
secondary
#5265D8
accent
#22E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181610
muted
#868581

Preview Lab

Preview with #F9E98C

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

Preview Lab → · Contrast checker → · Palette generator →

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