#FDF798#FDF798

#FDF798 is a very light, moderate yellow. Relative luminance 0.897; OKLCH L 96.0% C 0.117 H 105.3°. Best body text is #000000 at 18.93:1 contrast (WCAG AA passes).

Color values

HEX#FDF798
RGBrgb(253, 247, 152)
HSLhsl(56, 96%, 79%)
HSVhsv(56, 40%, 99%)
CMYKcmyk(0%, 2.4%, 39.9%, 0.8%)
CIE-LABlab(95.86, -11.18, 46.33)
CIE-LCHlch(95.86, 47.66, 103.57°)
OKLaboklab(96.04% -0.0307 0.1127)
OKLCHoklch(96.04% 0.117 105.3)
XYZxyz(79.4376, 89.6731, 42.8237)
Luminance0.8967 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FDF798 #989EFD
analogous
#FDC598 #FDF798 #D0FD98
triadic
#FDF798 #98FDF7 #F798FD
tetradic
#FDF798 #98FDC5 #989EFD #FD98D0
square
#FDF798 #98FDC5 #989EFD #FD98D0
split-complementary
#FDF798 #98D0FD #C598FD
monochromatic
#FBEE20 #FCF25C #FDF798 #FEFCD4 #FEFDE1

Accessibility & contrast

On white

1.11
#FDF798 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.93
#FDF798 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FDF798
18.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FDF798#FFFFFF#000000##000000
##FDF7981.001.1118.9318.93
#FFFFFF1.111.0021.0021.00
#00000018.9321.001.001.00
##00000018.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF091
Deuteranopia (green-blind)
#FFF59C
Tritanopia (blue-blind)
#FFECE0
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fdf798;
/* rgb */ color: rgb(253, 247, 152);
/* oklch */ color: oklch(96.0% 0.117 105.3);
Tailwind
colors: {
  custom: {
    50: '#fff9b7',
    500: '#fdf798',
    950: '#000000',
  },
}
SCSS
$custom: #fdf798;
$custom-light: #fff9b7;
$custom-dark: #000000;
JSON
{
  "hex": "#fdf798",
  "rgb": {
    "r": 253,
    "g": 247,
    "b": 152
  },
  "hsl": {
    "h": 56.436,
    "s": 96.19,
    "l": 79.412
  },
  "oklch": {
    "l": 0.96041,
    "c": 0.11681,
    "h": 105.3
  },
  "luminance": 0.89671
}

Semantic roles & 50–950 ramp

primary
#FDF798
secondary
#5A62DF
accent
#0EE600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #FDF798

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

Preview Lab → · Contrast checker → · Palette generator →

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