#F7E796#F7E796

#F7E796 is a very light, moderate yellow. Relative luminance 0.791; OKLCH L 92.3% C 0.102 H 98.4°. Best body text is #000000 at 16.83:1 contrast (WCAG AA passes).

Color values

HEX#F7E796
RGBrgb(247, 231, 150)
HSLhsl(50, 86%, 78%)
HSVhsv(50, 39%, 97%)
CMYKcmyk(0%, 6.5%, 39.3%, 3.1%)
CIE-LABlab(91.29, -5.75, 41.38)
CIE-LCHlch(91.29, 41.78, 97.91°)
OKLaboklab(92.3% -0.015 0.1014)
OKLCHoklch(92.3% 0.102 98.4)
XYZxyz(72.4401, 79.1302, 40.3060)
Luminance0.7913 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7E796 #96A6F7
analogous
#F7B696 #F7E796 #D6F796
triadic
#F7E796 #96F7E7 #E796F7
tetradic
#F7E796 #96F7B6 #96A6F7 #F796D6
square
#F7E796 #96F7B6 #96A6F7 #F796D6
split-complementary
#F7E796 #96D6F7 #B696F7
monochromatic
#EECD24 #F3DA5D #F7E796 #FBF4CF #FDF9E3

Accessibility & contrast

On white

1.25
#F7E796 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.83
#F7E796 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7E796
16.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7E796#FFFFFF#000000##000000
##F7E7961.001.2516.8316.83
#FFFFFF1.251.0021.0021.00
#00000016.8321.001.001.00
##00000016.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#F6E390
Deuteranopia (green-blind)
#FAE999
Tritanopia (blue-blind)
#FFDCD3
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #f7e796;
/* rgb */ color: rgb(247, 231, 150);
/* oklch */ color: oklch(92.3% 0.102 98.4);
Tailwind
colors: {
  custom: {
    50: '#fbeeb6',
    500: '#f7e796',
    950: '#000000',
  },
}
SCSS
$custom: #f7e796;
$custom-light: #fbeeb6;
$custom-dark: #000000;
JSON
{
  "hex": "#f7e796",
  "rgb": {
    "r": 247,
    "g": 231,
    "b": 150
  },
  "hsl": {
    "h": 50.103,
    "s": 85.841,
    "l": 77.843
  },
  "oklch": {
    "l": 0.92296,
    "c": 0.10248,
    "h": 98.4
  },
  "luminance": 0.79128
}

Semantic roles & 50–950 ramp

primary
#F7E796
secondary
#5B6FD6
accent
#28E203
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181611
muted
#868581

Preview Lab

Preview with #F7E796

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

Preview Lab → · Contrast checker → · Palette generator →

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