#F8F196#F8F196

#F8F196 is a very light, moderate yellow. Relative luminance 0.851; OKLCH L 94.4% C 0.113 H 104.5°. Best body text is #000000 at 18.01:1 contrast (WCAG AA passes).

Color values

HEX#F8F196
RGBrgb(248, 241, 150)
HSLhsl(56, 88%, 78%)
HSVhsv(56, 40%, 97%)
CMYKcmyk(0%, 2.8%, 39.5%, 2.7%)
CIE-LABlab(93.91, -10.35, 44.75)
CIE-LCHlch(93.91, 45.93, 103.02°)
OKLaboklab(94.39% -0.0283 0.1091)
OKLCHoklch(94.39% 0.113 104.5)
XYZxyz(75.6730, 85.0709, 41.2823)
Luminance0.8507 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F196 #969DF8
analogous
#F8C096 #F8F196 #CEF896
triadic
#F8F196 #96F8F1 #F196F8
tetradic
#F8F196 #96F8C0 #969DF8 #F896CE
square
#F8F196 #96F8C0 #969DF8 #F896CE
split-complementary
#F8F196 #96CEF8 #C096F8
monochromatic
#F0E223 #F4E95D #F8F196 #FCF9CF #FDFBE2

Accessibility & contrast

On white

1.17
#F8F196 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.01
#F8F196 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F196
18.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F196#FFFFFF#000000##000000
##F8F1961.001.1718.0118.01
#FFFFFF1.171.0021.0021.00
#00000018.0121.001.001.00
##00000018.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB8F
Deuteranopia (green-blind)
#FFF09A
Tritanopia (blue-blind)
#FFE6DB
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #f8f196;
/* rgb */ color: rgb(248, 241, 150);
/* oklch */ color: oklch(94.4% 0.113 104.5);
Tailwind
colors: {
  custom: {
    50: '#fcf5b6',
    500: '#f8f196',
    950: '#000000',
  },
}
SCSS
$custom: #f8f196;
$custom-light: #fcf5b6;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f196",
  "rgb": {
    "r": 248,
    "g": 241,
    "b": 150
  },
  "hsl": {
    "h": 55.714,
    "s": 87.5,
    "l": 78.039
  },
  "oklch": {
    "l": 0.94392,
    "c": 0.11266,
    "h": 104.5
  },
  "luminance": 0.85069
}

Semantic roles & 50–950 ramp

primary
#F8F196
secondary
#5B64D8
accent
#12E401
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #F8F196

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

Preview Lab → · Contrast checker → · Palette generator →

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