#F9F8A2#F9F8A2

#F9F8A2 is a very light, moderate yellow. Relative luminance 0.899; OKLCH L 96.1% C 0.107 H 107.7°. Best body text is #000000 at 18.98:1 contrast (WCAG AA passes).

Color values

HEX#F9F8A2
RGBrgb(249, 248, 162)
HSLhsl(59, 88%, 81%)
HSVhsv(59, 35%, 98%)
CMYKcmyk(0%, 0.4%, 34.9%, 2.4%)
CIE-LABlab(95.95, -12.12, 41.49)
CIE-LCHlch(95.95, 43.22, 106.28°)
OKLaboklab(96.08% -0.0325 0.1021)
OKLCHoklch(96.08% 0.107 107.7)
XYZxyz(79.1568, 89.8847, 47.3550)
Luminance0.8988 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9F8A2 #A2A3F9
analogous
#F9CCA2 #F9F8A2 #CEF9A2
triadic
#F9F8A2 #A2F9F8 #F8A2F9
tetradic
#F9F8A2 #A2F9CC #A2A3F9 #F9A2CE
square
#F9F8A2 #A2F9CC #A2A3F9 #F9A2CE
split-complementary
#F9F8A2 #A2CEF9 #CCA2F9
monochromatic
#F2EF2F #F5F469 #F9F8A2 #FDFCDB #FDFDE2

Accessibility & contrast

On white

1.11
#F9F8A2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.98
#F9F8A2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9F8A2
18.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9F8A2#FFFFFF#000000##000000
##F9F8A21.001.1118.9818.98
#FFFFFF1.111.0021.0021.00
#00000018.9821.001.001.00
##00000018.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF19C
Deuteranopia (green-blind)
#FFF5A6
Tritanopia (blue-blind)
#FFEEE2
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #f9f8a2;
/* rgb */ color: rgb(249, 248, 162);
/* oklch */ color: oklch(96.1% 0.107 107.7);
Tailwind
colors: {
  custom: {
    50: '#fcfabe',
    500: '#f9f8a2',
    950: '#000000',
  },
}
SCSS
$custom: #f9f8a2;
$custom-light: #fcfabe;
$custom-dark: #000000;
JSON
{
  "hex": "#f9f8a2",
  "rgb": {
    "r": 249,
    "g": 248,
    "b": 162
  },
  "hsl": {
    "h": 59.31,
    "s": 87.879,
    "l": 80.588
  },
  "oklch": {
    "l": 0.96082,
    "c": 0.10715,
    "h": 107.7
  },
  "luminance": 0.89883
}

Semantic roles & 50–950 ramp

primary
#F9F8A2
secondary
#6566DA
accent
#04E401
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181712
muted
#868582

Preview Lab

Preview with #F9F8A2

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

Preview Lab → · Contrast checker → · Palette generator →

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