#F7E997#F7E997

#F7E997 is a very light, moderate yellow. Relative luminance 0.803; OKLCH L 92.7% C 0.103 H 99.7°. Best body text is #000000 at 17.06:1 contrast (WCAG AA passes).

Color values

HEX#F7E997
RGBrgb(247, 233, 151)
HSLhsl(51, 86%, 78%)
HSVhsv(51, 39%, 97%)
CMYKcmyk(0%, 5.7%, 38.9%, 3.1%)
CIE-LABlab(91.81, -6.65, 41.56)
CIE-LCHlch(91.81, 42.09, 99.09°)
OKLaboklab(92.71% -0.0175 0.1018)
OKLCHoklch(92.71% 0.103 99.7)
XYZxyz(73.0840, 80.2885, 40.9195)
Luminance0.8029 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7E997 #97A5F7
analogous
#F7B997 #F7E997 #D5F797
triadic
#F7E997 #97F7E9 #E997F7
tetradic
#F7E997 #97F7B9 #97A5F7 #F797D5
square
#F7E997 #97F7B9 #97A5F7 #F797D5
split-complementary
#F7E997 #97D5F7 #B997F7
monochromatic
#EED125 #F3DD5E #F7E997 #FBF5D0 #FDF9E3

Accessibility & contrast

On white

1.23
#F7E997 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.06
#F7E997 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7E997
17.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7E997#FFFFFF#000000##000000
##F7E9971.001.2317.0617.06
#FFFFFF1.231.0021.0021.00
#00000017.0621.001.001.00
##00000017.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#F8E491
Deuteranopia (green-blind)
#FCEA9A
Tritanopia (blue-blind)
#FFDED4
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #f7e997;
/* rgb */ color: rgb(247, 233, 151);
/* oklch */ color: oklch(92.7% 0.103 99.7);
Tailwind
colors: {
  custom: {
    50: '#fbefb6',
    500: '#f7e997',
    950: '#000000',
  },
}
SCSS
$custom: #f7e997;
$custom-light: #fbefb6;
$custom-dark: #000000;
JSON
{
  "hex": "#f7e997",
  "rgb": {
    "r": 247,
    "g": 233,
    "b": 151
  },
  "hsl": {
    "h": 51.25,
    "s": 85.714,
    "l": 78.039
  },
  "oklch": {
    "l": 0.92713,
    "c": 0.10331,
    "h": 99.7
  },
  "luminance": 0.80286
}

Semantic roles & 50–950 ramp

primary
#F7E997
secondary
#5C6ED6
accent
#24E203
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181611
muted
#868581

Preview Lab

Preview with #F7E997

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

Preview Lab → · Contrast checker → · Palette generator →

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