#F8F996#F8F996

#F8F996 is a very light, vivid yellow. Relative luminance 0.899; OKLCH L 96.0% C 0.122 H 109.0°. Best body text is #000000 at 18.98:1 contrast (WCAG AA passes).

Color values

HEX#F8F996
RGBrgb(248, 249, 150)
HSLhsl(61, 89%, 78%)
HSVhsv(61, 40%, 98%)
CMYKcmyk(0.4%, 0%, 39.8%, 2.4%)
CIE-LABlab(95.96, -14.28, 47.34)
CIE-LCHlch(95.96, 49.45, 106.79°)
OKLaboklab(96.02% -0.0395 0.1149)
OKLCHoklch(96.02% 0.122 109)
XYZxyz(78.0932, 89.9114, 42.0891)
Luminance0.8991 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F996 #9796F9
analogous
#F9C896 #F8F996 #C6F996
triadic
#F8F996 #96F8F9 #F996F8
tetradic
#F8F996 #96F9C8 #9796F9 #F996C6
square
#F8F996 #96F9C8 #9796F9 #F996C6
split-complementary
#F8F996 #96C6F9 #C896F9
monochromatic
#F0F222 #F4F65C #F8F996 #FCFCD0 #FDFDE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F8F996#FFFFFF#000000##000000
##F8F9961.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)
#FFF18E
Deuteranopia (green-blind)
#FFF59A
Tritanopia (blue-blind)
#FFEEE1
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #f8f996;
/* rgb */ color: rgb(248, 249, 150);
/* oklch */ color: oklch(96.0% 0.122 109.0);
Tailwind
colors: {
  custom: {
    50: '#fcfbb6',
    500: '#f8f996',
    950: '#000000',
  },
}
SCSS
$custom: #f8f996;
$custom-light: #fcfbb6;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f996",
  "rgb": {
    "r": 248,
    "g": 249,
    "b": 150
  },
  "hsl": {
    "h": 60.606,
    "s": 89.189,
    "l": 78.235
  },
  "oklch": {
    "l": 0.96017,
    "c": 0.12154,
    "h": 109
  },
  "luminance": 0.8991
}

Semantic roles & 50–950 ramp

primary
#F8F996
secondary
#5C5AD9
accent
#00E602
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #F8F996

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

Preview Lab → · Contrast checker → · Palette generator →

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