#FDF987#FDF987

#FDF987 is a very light, vivid yellow. Relative luminance 0.904; OKLCH L 96.2% C 0.136 H 106.9°. Best body text is #000000 at 19.08:1 contrast (WCAG AA passes).

Color values

HEX#FDF987
RGBrgb(253, 249, 135)
HSLhsl(58, 97%, 76%)
HSVhsv(58, 47%, 99%)
CMYKcmyk(0%, 1.6%, 46.6%, 0.8%)
CIE-LABlab(96.16, -13.80, 54.80)
CIE-LCHlch(96.16, 56.51, 104.14°)
OKLaboklab(96.21% -0.0397 0.1306)
OKLCHoklch(96.21% 0.136 106.9)
XYZxyz(78.7586, 90.3853, 36.2143)
Luminance0.9038 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FDF987 #878BFD
analogous
#FDBE87 #FDF987 #C6FD87
triadic
#FDF987 #87FDF9 #F987FD
tetradic
#FDF987 #87FDBE #878BFD #FD87C6
square
#FDF987 #87FDBE #878BFD #FD87C6
split-complementary
#FDF987 #87C6FD #BE87FD
monochromatic
#FBF30F #FCF64B #FDF987 #FEFCC3 #FEFDE1

Accessibility & contrast

On white

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

On black

19.08
#FDF987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FDF987
19.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FDF987#FFFFFF#000000##000000
##FDF9871.001.1019.0819.08
#FFFFFF1.101.0021.0021.00
#00000019.0821.001.001.00
##00000019.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF17D
Deuteranopia (green-blind)
#FFF68C
Tritanopia (blue-blind)
#FFECDE
Achromatopsia (no color)
#F4F4F4

Design tokens & code

CSS
--color: #fdf987;
/* rgb */ color: rgb(253, 249, 135);
/* oklch */ color: oklch(96.2% 0.136 106.9);
Tailwind
colors: {
  custom: {
    50: '#fffbac',
    500: '#fdf987',
    950: '#000000',
  },
}
SCSS
$custom: #fdf987;
$custom-light: #fffbac;
$custom-dark: #000000;
JSON
{
  "hex": "#fdf987",
  "rgb": {
    "r": 253,
    "g": 249,
    "b": 135
  },
  "hsl": {
    "h": 57.966,
    "s": 96.721,
    "l": 76.078
  },
  "oklch": {
    "l": 0.96206,
    "c": 0.13647,
    "h": 106.9
  },
  "luminance": 0.90383
}

Semantic roles & 50–950 ramp

primary
#FDF987
secondary
#4C51DC
accent
#08E600
background
#FFFFFD
surface
#FFFFF7
border
#D7D7D0
text
#181710
muted
#868581

Preview Lab

Preview with #FDF987

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

Preview Lab → · Contrast checker → · Palette generator →

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