#F7F796#F7F796

#F7F796 is a very light, moderate yellow. Relative luminance 0.885; OKLCH L 95.5% C 0.119 H 108.5°. Best body text is #000000 at 18.70:1 contrast (WCAG AA passes).

Color values

HEX#F7F796
RGBrgb(247, 247, 150)
HSLhsl(60, 86%, 78%)
HSVhsv(60, 39%, 97%)
CMYKcmyk(0%, 0%, 39.3%, 3.1%)
CIE-LABlab(95.37, -13.69, 46.58)
CIE-LCHlch(95.37, 48.55, 106.37°)
OKLaboklab(95.53% -0.0378 0.1132)
OKLCHoklch(95.53% 0.119 108.5)
XYZxyz(77.1247, 88.4993, 41.8675)
Luminance0.8850 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7F796 #9696F7
analogous
#F7C696 #F7F796 #C6F796
triadic
#F7F796 #96F7F7 #F796F7
tetradic
#F7F796 #96F7C6 #9696F7 #F796C6
square
#F7F796 #96F7C6 #9696F7 #F796C6
split-complementary
#F7F796 #96C6F7 #C696F7
monochromatic
#EEEE24 #F3F35D #F7F796 #FBFBCF #FDFDE3

Accessibility & contrast

On white

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

On black

18.70
#F7F796 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7F796
18.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7F796#FFFFFF#000000##000000
##F7F7961.001.1218.7018.70
#FFFFFF1.121.0021.0021.00
#00000018.7021.001.001.00
##00000018.7021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f7f796;
/* rgb */ color: rgb(247, 247, 150);
/* oklch */ color: oklch(95.5% 0.119 108.5);
Tailwind
colors: {
  custom: {
    50: '#fbf9b6',
    500: '#f7f796',
    950: '#000000',
  },
}
SCSS
$custom: #f7f796;
$custom-light: #fbf9b6;
$custom-dark: #000000;
JSON
{
  "hex": "#f7f796",
  "rgb": {
    "r": 247,
    "g": 247,
    "b": 150
  },
  "hsl": {
    "h": 60,
    "s": 85.841,
    "l": 77.843
  },
  "oklch": {
    "l": 0.9553,
    "c": 0.11936,
    "h": 108.5
  },
  "luminance": 0.88498
}

Semantic roles & 50–950 ramp

primary
#F7F796
secondary
#5B5BD6
accent
#03E203
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #F7F796

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

Preview Lab → · Contrast checker → · Palette generator →

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