#FDF997#FDF997

#FDF997 is a very light, vivid yellow. Relative luminance 0.909; OKLCH L 96.4% C 0.120 H 106.4°. Best body text is #000000 at 19.17:1 contrast (WCAG AA passes).

Color values

HEX#FDF997
RGBrgb(253, 249, 151)
HSLhsl(58, 96%, 79%)
HSVhsv(58, 40%, 99%)
CMYKcmyk(0%, 1.6%, 40.3%, 0.8%)
CIE-LABlab(96.36, -12.27, 47.44)
CIE-LCHlch(96.36, 49.00, 104.50°)
OKLaboklab(96.43% -0.0339 0.1152)
OKLCHoklch(96.43% 0.12 106.4)
XYZxyz(79.9710, 90.8702, 42.5992)
Luminance0.9087 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FDF997 #979BFD
analogous
#FDC697 #FDF997 #CEFD97
triadic
#FDF997 #97FDF9 #F997FD
tetradic
#FDF997 #97FDC6 #979BFD #FD97CE
square
#FDF997 #97FDC6 #979BFD #FD97CE
split-complementary
#FDF997 #97CEFD #C697FD
monochromatic
#FBF21F #FCF65B #FDF997 #FEFCD3 #FEFDE1

Accessibility & contrast

On white

1.10
#FDF997 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.17
#FDF997 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FDF997
19.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FDF997#FFFFFF#000000##000000
##FDF9971.001.1019.1719.17
#FFFFFF1.101.0021.0021.00
#00000019.1721.001.001.00
##00000019.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF28F
Deuteranopia (green-blind)
#FFF79B
Tritanopia (blue-blind)
#FFEDE1
Achromatopsia (no color)
#F4F4F4

Design tokens & code

CSS
--color: #fdf997;
/* rgb */ color: rgb(253, 249, 151);
/* oklch */ color: oklch(96.4% 0.120 106.4);
Tailwind
colors: {
  custom: {
    50: '#fffbb7',
    500: '#fdf997',
    950: '#000000',
  },
}
SCSS
$custom: #fdf997;
$custom-light: #fffbb7;
$custom-dark: #000000;
JSON
{
  "hex": "#fdf997",
  "rgb": {
    "r": 253,
    "g": 249,
    "b": 151
  },
  "hsl": {
    "h": 57.647,
    "s": 96.226,
    "l": 79.216
  },
  "oklch": {
    "l": 0.96431,
    "c": 0.12005,
    "h": 106.4
  },
  "luminance": 0.90868
}

Semantic roles & 50–950 ramp

primary
#FDF997
secondary
#595FDF
accent
#09E600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #FDF997

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

Preview Lab → · Contrast checker → · Palette generator →

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