#F9F396#F9F396

#F9F396 is a very light, moderate yellow. Relative luminance 0.864; OKLCH L 94.9% C 0.115 H 105.2°. Best body text is #000000 at 18.29:1 contrast (WCAG AA passes).

Color values

HEX#F9F396
RGBrgb(249, 243, 150)
HSLhsl(56, 89%, 78%)
HSVhsv(56, 40%, 98%)
CMYKcmyk(0%, 2.4%, 39.8%, 2.4%)
CIE-LABlab(94.50, -10.95, 45.52)
CIE-LCHlch(94.50, 46.82, 103.53°)
OKLaboklab(94.88% -0.03 0.1108)
OKLCHoklch(94.88% 0.115 105.2)
XYZxyz(76.6238, 86.4448, 41.4974)
Luminance0.8644 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9F396 #969CF9
analogous
#F9C196 #F9F396 #CDF996
triadic
#F9F396 #96F9F3 #F396F9
tetradic
#F9F396 #96F9C1 #969CF9 #F996CD
square
#F9F396 #96F9C1 #969CF9 #F996CD
split-complementary
#F9F396 #96CDF9 #C196F9
monochromatic
#F2E622 #F6EC5C #F9F396 #FCFAD0 #FDFCE2

Accessibility & contrast

On white

1.15
#F9F396 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.29
#F9F396 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9F396
18.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9F396#FFFFFF#000000##000000
##F9F3961.001.1518.2918.29
#FFFFFF1.151.0021.0021.00
#00000018.2921.001.001.00
##00000018.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED8F
Deuteranopia (green-blind)
#FFF19A
Tritanopia (blue-blind)
#FFE8DC
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #f9f396;
/* rgb */ color: rgb(249, 243, 150);
/* oklch */ color: oklch(94.9% 0.115 105.2);
Tailwind
colors: {
  custom: {
    50: '#fdf6b6',
    500: '#f9f396',
    950: '#000000',
  },
}
SCSS
$custom: #f9f396;
$custom-light: #fdf6b6;
$custom-dark: #000000;
JSON
{
  "hex": "#f9f396",
  "rgb": {
    "r": 249,
    "g": 243,
    "b": 150
  },
  "hsl": {
    "h": 56.364,
    "s": 89.189,
    "l": 78.235
  },
  "oklch": {
    "l": 0.94878,
    "c": 0.11479,
    "h": 105.2
  },
  "luminance": 0.86443
}

Semantic roles & 50–950 ramp

primary
#F9F396
secondary
#5A62D9
accent
#0EE600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #F9F396

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

Preview Lab → · Contrast checker → · Palette generator →

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