#F5E798#F5E798

#F5E798 is a very light, moderate yellow. Relative luminance 0.788; OKLCH L 92.2% C 0.100 H 99.4°. Best body text is #000000 at 16.77:1 contrast (WCAG AA passes).

Color values

HEX#F5E798
RGBrgb(245, 231, 152)
HSLhsl(51, 82%, 78%)
HSVhsv(51, 38%, 96%)
CMYKcmyk(0%, 5.7%, 38%, 3.9%)
CIE-LABlab(91.16, -6.31, 40.18)
CIE-LCHlch(91.16, 40.67, 98.92°)
OKLaboklab(92.16% -0.0164 0.0987)
OKLCHoklch(92.16% 0.1 99.4)
XYZxyz(71.9009, 78.8334, 41.1285)
Luminance0.7883 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E798 #98A6F5
analogous
#F5B898 #F5E798 #D4F598
triadic
#F5E798 #98F5E7 #E798F5
tetradic
#F5E798 #98F5B8 #98A6F5 #F598D4
square
#F5E798 #98F5B8 #98A6F5 #F598D4
split-complementary
#F5E798 #98D4F5 #B898F5
monochromatic
#EACD28 #F0DA60 #F5E798 #FAF4D0 #FCF9E3

Accessibility & contrast

On white

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

On black

16.77
#F5E798 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E798
16.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E798#FFFFFF#000000##000000
##F5E7981.001.2516.7716.77
#FFFFFF1.251.0021.0021.00
#00000016.7721.001.001.00
##00000016.7721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f5e798;
/* rgb */ color: rgb(245, 231, 152);
/* oklch */ color: oklch(92.2% 0.100 99.4);
Tailwind
colors: {
  custom: {
    50: '#faeeb7',
    500: '#f5e798',
    950: '#000000',
  },
}
SCSS
$custom: #f5e798;
$custom-light: #faeeb7;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e798",
  "rgb": {
    "r": 245,
    "g": 231,
    "b": 152
  },
  "hsl": {
    "h": 50.968,
    "s": 82.301,
    "l": 77.843
  },
  "oklch": {
    "l": 0.9216,
    "c": 0.10006,
    "h": 99.4
  },
  "luminance": 0.78831
}

Semantic roles & 50–950 ramp

primary
#F5E798
secondary
#5E6FD4
accent
#27DF07
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171611
muted
#858581

Preview Lab

Preview with #F5E798

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

Preview Lab → · Contrast checker → · Palette generator →

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