#FDF787#FDF787

#FDF787 is a very light, vivid yellow. Relative luminance 0.892; OKLCH L 95.8% C 0.134 H 105.9°. Best body text is #000000 at 18.83:1 contrast (WCAG AA passes).

Color values

HEX#FDF787
RGBrgb(253, 247, 135)
HSLhsl(57, 97%, 76%)
HSVhsv(57, 47%, 99%)
CMYKcmyk(0%, 2.4%, 46.6%, 0.8%)
CIE-LABlab(95.65, -12.82, 54.18)
CIE-LCHlch(95.65, 55.68, 103.32°)
OKLaboklab(95.8% -0.0369 0.1292)
OKLCHoklch(95.8% 0.134 105.9)
XYZxyz(78.1438, 89.1556, 36.0093)
Luminance0.8915 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FDF787 #878DFD
analogous
#FDBC87 #FDF787 #C8FD87
triadic
#FDF787 #87FDF7 #F787FD
tetradic
#FDF787 #87FDBC #878DFD #FD87C8
square
#FDF787 #87FDBC #878DFD #FD87C8
split-complementary
#FDF787 #87C8FD #BC87FD
monochromatic
#FBEF0F #FCF34B #FDF787 #FEFBC3 #FEFDE1

Accessibility & contrast

On white

1.12
#FDF787 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.83
#FDF787 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FDF787
18.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FDF787#FFFFFF#000000##000000
##FDF7871.001.1218.8318.83
#FFFFFF1.121.0021.0021.00
#00000018.8321.001.001.00
##00000018.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF07D
Deuteranopia (green-blind)
#FFF58C
Tritanopia (blue-blind)
#FFEADD
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #fdf787;
/* rgb */ color: rgb(253, 247, 135);
/* oklch */ color: oklch(95.8% 0.134 105.9);
Tailwind
colors: {
  custom: {
    50: '#fff9ac',
    500: '#fdf787',
    950: '#000000',
  },
}
SCSS
$custom: #fdf787;
$custom-light: #fff9ac;
$custom-dark: #000000;
JSON
{
  "hex": "#fdf787",
  "rgb": {
    "r": 253,
    "g": 247,
    "b": 135
  },
  "hsl": {
    "h": 56.949,
    "s": 96.721,
    "l": 76.078
  },
  "oklch": {
    "l": 0.958,
    "c": 0.13437,
    "h": 105.9
  },
  "luminance": 0.89153
}

Semantic roles & 50–950 ramp

primary
#FDF787
secondary
#4C53DC
accent
#0CE600
background
#FFFFFD
surface
#FFFFF7
border
#D7D7D0
text
#181710
muted
#868581

Preview Lab

Preview with #FDF787

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

Preview Lab → · Contrast checker → · Palette generator →

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