#F4E798#F4E798

#F4E798 is a very light, moderate yellow. Relative luminance 0.787; OKLCH L 92.1% C 0.100 H 100.0°. Best body text is #000000 at 16.73:1 contrast (WCAG AA passes).

Color values

HEX#F4E798
RGBrgb(244, 231, 152)
HSLhsl(52, 81%, 78%)
HSVhsv(52, 38%, 96%)
CMYKcmyk(0%, 5.3%, 37.7%, 4.3%)
CIE-LABlab(91.08, -6.69, 40.06)
CIE-LCHlch(91.08, 40.62, 99.48°)
OKLaboklab(92.08% -0.0174 0.0984)
OKLCHoklch(92.08% 0.1 100)
XYZxyz(71.5529, 78.6539, 41.1122)
Luminance0.7865 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F4E798 #98A5F4
analogous
#F4B998 #F4E798 #D3F498
triadic
#F4E798 #98F4E7 #E798F4
tetradic
#F4E798 #98F4B9 #98A5F4 #F498D3
square
#F4E798 #98F4B9 #98A5F4 #F498D3
split-complementary
#F4E798 #98D3F4 #B998F4
monochromatic
#E8CD29 #EEDA61 #F4E798 #FAF4CF #FCF9E3

Accessibility & contrast

On white

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

On black

16.73
#F4E798 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F4E798
16.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F4E798#FFFFFF#000000##000000
##F4E7981.001.2616.7316.73
#FFFFFF1.261.0021.0021.00
#00000016.7321.001.001.00
##00000016.7321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f4e798;
/* rgb */ color: rgb(244, 231, 152);
/* oklch */ color: oklch(92.1% 0.100 100.0);
Tailwind
colors: {
  custom: {
    50: '#f9eeb7',
    500: '#f4e798',
    950: '#000000',
  },
}
SCSS
$custom: #f4e798;
$custom-light: #f9eeb7;
$custom-dark: #000000;
JSON
{
  "hex": "#f4e798",
  "rgb": {
    "r": 244,
    "g": 231,
    "b": 152
  },
  "hsl": {
    "h": 51.522,
    "s": 80.702,
    "l": 77.647
  },
  "oklch": {
    "l": 0.92076,
    "c": 0.09997,
    "h": 100
  },
  "luminance": 0.78652
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F4E798

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

Preview Lab → · Contrast checker → · Palette generator →

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