#F7E798#F7E798

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

Color values

HEX#F7E798
RGBrgb(247, 231, 152)
HSLhsl(50, 86%, 78%)
HSVhsv(50, 38%, 97%)
CMYKcmyk(0%, 6.5%, 38.5%, 3.1%)
CIE-LABlab(91.32, -5.54, 40.43)
CIE-LCHlch(91.32, 40.80, 97.80°)
OKLaboklab(92.33% -0.0142 0.0993)
OKLCHoklch(92.33% 0.1 98.1)
XYZxyz(72.6026, 79.1952, 41.1614)
Luminance0.7919 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7E798 #98A8F7
analogous
#F7B798 #F7E798 #D7F798
triadic
#F7E798 #98F7E7 #E798F7
tetradic
#F7E798 #98F7B7 #98A8F7 #F798D7
square
#F7E798 #98F7B7 #98A8F7 #F798D7
split-complementary
#F7E798 #98D7F7 #B798F7
monochromatic
#EECD26 #F3DA5F #F7E798 #FBF4D1 #FDF8E3

Accessibility & contrast

On white

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

On black

16.84
#F7E798 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7E798
16.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7E798#FFFFFF#000000##000000
##F7E7981.001.2516.8416.84
#FFFFFF1.251.0021.0021.00
#00000016.8421.001.001.00
##00000016.8421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f7e798;
/* rgb */ color: rgb(247, 231, 152);
/* oklch */ color: oklch(92.3% 0.100 98.1);
Tailwind
colors: {
  custom: {
    50: '#fbeeb7',
    500: '#f7e798',
    950: '#000000',
  },
}
SCSS
$custom: #f7e798;
$custom-light: #fbeeb7;
$custom-dark: #000000;
JSON
{
  "hex": "#f7e798",
  "rgb": {
    "r": 247,
    "g": 231,
    "b": 152
  },
  "hsl": {
    "h": 49.895,
    "s": 85.586,
    "l": 78.235
  },
  "oklch": {
    "l": 0.92329,
    "c": 0.10027,
    "h": 98.1
  },
  "luminance": 0.79193
}

Semantic roles & 50–950 ramp

primary
#F7E798
secondary
#5D71D6
accent
#29E203
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181611
muted
#868581

Preview Lab

Preview with #F7E798

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

Preview Lab → · Contrast checker → · Palette generator →

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