#FDF797#FDF797

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

Color values

HEX#FDF797
RGBrgb(253, 247, 151)
HSLhsl(56, 96%, 79%)
HSVhsv(56, 40%, 99%)
CMYKcmyk(0%, 2.4%, 40.3%, 0.8%)
CIE-LABlab(95.85, -11.29, 46.80)
CIE-LCHlch(95.85, 48.14, 103.56°)
OKLaboklab(96.03% -0.0311 0.1137)
OKLCHoklch(96.03% 0.118 105.3)
XYZxyz(79.3561, 89.6405, 42.3942)
Luminance0.8964 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FDF797 #979DFD
analogous
#FDC497 #FDF797 #D0FD97
triadic
#FDF797 #97FDF7 #F797FD
tetradic
#FDF797 #97FDC4 #979DFD #FD97D0
square
#FDF797 #97FDC4 #979DFD #FD97D0
split-complementary
#FDF797 #97D0FD #C497FD
monochromatic
#FBEE1F #FCF25B #FDF797 #FEFCD3 #FEFDE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##FDF797#FFFFFF#000000##000000
##FDF7971.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)
#FFF090
Deuteranopia (green-blind)
#FFF59B
Tritanopia (blue-blind)
#FFEBE0
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fdf797;
/* rgb */ color: rgb(253, 247, 151);
/* oklch */ color: oklch(96.0% 0.118 105.3);
Tailwind
colors: {
  custom: {
    50: '#fff9b7',
    500: '#fdf797',
    950: '#000000',
  },
}
SCSS
$custom: #fdf797;
$custom-light: #fff9b7;
$custom-dark: #000000;
JSON
{
  "hex": "#fdf797",
  "rgb": {
    "r": 253,
    "g": 247,
    "b": 151
  },
  "hsl": {
    "h": 56.471,
    "s": 96.226,
    "l": 79.216
  },
  "oklch": {
    "l": 0.96026,
    "c": 0.11789,
    "h": 105.3
  },
  "luminance": 0.89639
}

Semantic roles & 50–950 ramp

primary
#FDF797
secondary
#5961DF
accent
#0DE600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #FDF797

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

Preview Lab → · Contrast checker → · Palette generator →

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