#F4E797#F4E797

#F4E797 is a very light, moderate yellow. Relative luminance 0.786; OKLCH L 92.1% C 0.101 H 100.1°. Best body text is #000000 at 16.72:1 contrast (WCAG AA passes).

Color values

HEX#F4E797
RGBrgb(244, 231, 151)
HSLhsl(52, 81%, 77%)
HSVhsv(52, 38%, 96%)
CMYKcmyk(0%, 5.3%, 38.1%, 4.3%)
CIE-LABlab(91.06, -6.80, 40.54)
CIE-LCHlch(91.06, 41.11, 99.52°)
OKLaboklab(92.06% -0.0178 0.0995)
OKLCHoklch(92.06% 0.101 100.1)
XYZxyz(71.4713, 78.6213, 40.6827)
Luminance0.7862 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F4E797 #97A4F4
analogous
#F4B997 #F4E797 #D2F497
triadic
#F4E797 #97F4E7 #E797F4
tetradic
#F4E797 #97F4B9 #97A4F4 #F497D2
square
#F4E797 #97F4B9 #97A4F4 #F497D2
split-complementary
#F4E797 #97D2F4 #B997F4
monochromatic
#E8CD28 #EEDA60 #F4E797 #FAF4CE #FCF9E3

Accessibility & contrast

On white

1.26
#F4E797 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.72
#F4E797 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F4E797
16.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F4E797#FFFFFF#000000##000000
##F4E7971.001.2616.7216.72
#FFFFFF1.261.0021.0021.00
#00000016.7221.001.001.00
##00000016.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#F5E291
Deuteranopia (green-blind)
#F9E89A
Tritanopia (blue-blind)
#FFDCD3
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #f4e797;
/* rgb */ color: rgb(244, 231, 151);
/* oklch */ color: oklch(92.1% 0.101 100.1);
Tailwind
colors: {
  custom: {
    50: '#f9eeb6',
    500: '#f4e797',
    950: '#000000',
  },
}
SCSS
$custom: #f4e797;
$custom-light: #f9eeb6;
$custom-dark: #000000;
JSON
{
  "hex": "#f4e797",
  "rgb": {
    "r": 244,
    "g": 231,
    "b": 151
  },
  "hsl": {
    "h": 51.613,
    "s": 80.87,
    "l": 77.451
  },
  "oklch": {
    "l": 0.9206,
    "c": 0.10108,
    "h": 100.1
  },
  "luminance": 0.78619
}

Semantic roles & 50–950 ramp

primary
#F4E797
secondary
#5D6DD2
accent
#26DD08
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171611
muted
#858581

Preview Lab

Preview with #F4E797

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

Preview Lab → · Contrast checker → · Palette generator →

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