#F7F896#F7F896

#F7F896 is a very light, vivid yellow. Relative luminance 0.891; OKLCH L 95.7% C 0.121 H 109.0°. Best body text is #000000 at 18.82:1 contrast (WCAG AA passes).

Color values

HEX#F7F896
RGBrgb(247, 248, 150)
HSLhsl(61, 88%, 78%)
HSVhsv(61, 40%, 97%)
CMYKcmyk(0.4%, 0%, 39.5%, 2.7%)
CIE-LABlab(95.63, -14.18, 46.91)
CIE-LCHlch(95.63, 49.00, 106.81°)
OKLaboklab(95.73% -0.0392 0.114)
OKLCHoklch(95.73% 0.121 109)
XYZxyz(77.4313, 89.1125, 41.9697)
Luminance0.8911 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7F896 #9796F8
analogous
#F8C896 #F7F896 #C6F896
triadic
#F7F896 #96F7F8 #F896F7
tetradic
#F7F896 #96F8C8 #9796F8 #F896C6
square
#F7F896 #96F8C8 #9796F8 #F896C6
split-complementary
#F7F896 #96C6F8 #C896F8
monochromatic
#EEF023 #F3F45D #F7F896 #FBFCCF #FDFDE2

Accessibility & contrast

On white

1.12
#F7F896 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.82
#F7F896 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7F896
18.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7F896#FFFFFF#000000##000000
##F7F8961.001.1218.8218.82
#FFFFFF1.121.0021.0021.00
#00000018.8221.001.001.00
##00000018.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF08E
Deuteranopia (green-blind)
#FFF49A
Tritanopia (blue-blind)
#FFEDE0
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #f7f896;
/* rgb */ color: rgb(247, 248, 150);
/* oklch */ color: oklch(95.7% 0.121 109.0);
Tailwind
colors: {
  custom: {
    50: '#fbfab6',
    500: '#f7f896',
    950: '#000000',
  },
}
SCSS
$custom: #f7f896;
$custom-light: #fbfab6;
$custom-dark: #000000;
JSON
{
  "hex": "#f7f896",
  "rgb": {
    "r": 247,
    "g": 248,
    "b": 150
  },
  "hsl": {
    "h": 60.612,
    "s": 87.5,
    "l": 78.039
  },
  "oklch": {
    "l": 0.95734,
    "c": 0.12051,
    "h": 109
  },
  "luminance": 0.89111
}

Semantic roles & 50–950 ramp

primary
#F7F896
secondary
#5C5BD8
accent
#01E404
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #F7F896

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

Preview Lab → · Contrast checker → · Palette generator →

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