#F7E797#F7E797

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

Color values

HEX#F7E797
RGBrgb(247, 231, 151)
HSLhsl(50, 86%, 78%)
HSVhsv(50, 39%, 97%)
CMYKcmyk(0%, 6.5%, 38.9%, 3.1%)
CIE-LABlab(91.31, -5.64, 40.91)
CIE-LCHlch(91.31, 41.29, 97.85°)
OKLaboklab(92.31% -0.0146 0.1003)
OKLCHoklch(92.31% 0.101 98.3)
XYZxyz(72.5210, 79.1625, 40.7319)
Luminance0.7916 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7E797 #97A7F7
analogous
#F7B797 #F7E797 #D7F797
triadic
#F7E797 #97F7E7 #E797F7
tetradic
#F7E797 #97F7B7 #97A7F7 #F797D7
square
#F7E797 #97F7B7 #97A7F7 #F797D7
split-complementary
#F7E797 #97D7F7 #B797F7
monochromatic
#EECD25 #F3DA5E #F7E797 #FBF4D0 #FDF8E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F7E797#FFFFFF#000000##000000
##F7E7971.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)
#F6E391
Deuteranopia (green-blind)
#FAE99A
Tritanopia (blue-blind)
#FFDCD3
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #f7e797;
/* rgb */ color: rgb(247, 231, 151);
/* oklch */ color: oklch(92.3% 0.101 98.3);
Tailwind
colors: {
  custom: {
    50: '#fbeeb6',
    500: '#f7e797',
    950: '#000000',
  },
}
SCSS
$custom: #f7e797;
$custom-light: #fbeeb6;
$custom-dark: #000000;
JSON
{
  "hex": "#f7e797",
  "rgb": {
    "r": 247,
    "g": 231,
    "b": 151
  },
  "hsl": {
    "h": 50,
    "s": 85.714,
    "l": 78.039
  },
  "oklch": {
    "l": 0.92313,
    "c": 0.10138,
    "h": 98.3
  },
  "luminance": 0.7916
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F7E797

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

Preview Lab → · Contrast checker → · Palette generator →

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