#FDF796#FDF796

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

Color values

HEX#FDF796
RGBrgb(253, 247, 150)
HSLhsl(57, 96%, 79%)
HSVhsv(57, 41%, 99%)
CMYKcmyk(0%, 2.4%, 40.7%, 0.8%)
CIE-LABlab(95.83, -11.39, 47.27)
CIE-LCHlch(95.83, 48.62, 103.55°)
OKLaboklab(96.01% -0.0315 0.1147)
OKLCHoklch(96.01% 0.119 105.3)
XYZxyz(79.2752, 89.6081, 41.9683)
Luminance0.8961 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FDF796 #969CFD
analogous
#FDC496 #FDF796 #D0FD96
triadic
#FDF796 #96FDF7 #F796FD
tetradic
#FDF796 #96FDC4 #969CFD #FD96D0
square
#FDF796 #96FDC4 #969CFD #FD96D0
split-complementary
#FDF796 #96D0FD #C496FD
monochromatic
#FBEE1E #FCF25A #FDF796 #FEFCD2 #FEFDE1

Accessibility & contrast

On white

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

On black

18.92
#FDF796 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FDF796
18.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FDF796#FFFFFF#000000##000000
##FDF7961.001.1118.9218.92
#FFFFFF1.111.0021.0021.00
#00000018.9221.001.001.00
##00000018.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF08E
Deuteranopia (green-blind)
#FFF59A
Tritanopia (blue-blind)
#FFEBDF
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fdf796;
/* rgb */ color: rgb(253, 247, 150);
/* oklch */ color: oklch(96.0% 0.119 105.3);
Tailwind
colors: {
  custom: {
    50: '#fff9b6',
    500: '#fdf796',
    950: '#000000',
  },
}
SCSS
$custom: #fdf796;
$custom-light: #fff9b6;
$custom-dark: #000000;
JSON
{
  "hex": "#fdf796",
  "rgb": {
    "r": 253,
    "g": 247,
    "b": 150
  },
  "hsl": {
    "h": 56.505,
    "s": 96.262,
    "l": 79.02
  },
  "oklch": {
    "l": 0.96011,
    "c": 0.11895,
    "h": 105.3
  },
  "luminance": 0.89606
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FDF796

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

Preview Lab → · Contrast checker → · Palette generator →

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