#F4D987#F4D987

#F4D987 is a very light, moderate yellow. Relative luminance 0.706; OKLCH L 89.0% C 0.106 H 91.8°. Best body text is #000000 at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#F4D987
RGBrgb(244, 217, 135)
HSLhsl(45, 83%, 74%)
HSVhsv(45, 45%, 96%)
CMYKcmyk(0%, 11.1%, 44.7%, 4.3%)
CIE-LABlab(87.30, -1.37, 43.69)
CIE-LCHlch(87.30, 43.72, 91.79°)
OKLaboklab(89.01% -0.0034 0.1059)
OKLCHoklch(89.01% 0.106 91.8)
XYZxyz(66.4962, 70.6107, 33.0435)
Luminance0.7061 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F4D987 #87A2F4
analogous
#F4A387 #F4D987 #D8F487
triadic
#F4D987 #87F4D9 #D987F4
tetradic
#F4D987 #87F4A3 #87A2F4 #F487D8
square
#F4D987 #87F4A3 #87A2F4 #F487D8
split-complementary
#F4D987 #87D8F4 #A387F4
monochromatic
#EAB517 #EFC74F #F4D987 #F9EBBF #FCF6E3

Accessibility & contrast

On white

1.39
#F4D987 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.12
#F4D987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F4D987
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F4D987#FFFFFF#000000##000000
##F4D9871.001.3915.1215.12
#FFFFFF1.391.0021.0021.00
#00000015.1221.001.001.00
##00000015.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D681
Deuteranopia (green-blind)
#F0DE8A
Tritanopia (blue-blind)
#FFCDC5
Achromatopsia (no color)
#DBDBDB

Design tokens & code

CSS
--color: #f4d987;
/* rgb */ color: rgb(244, 217, 135);
/* oklch */ color: oklch(89.0% 0.106 91.8);
Tailwind
colors: {
  custom: {
    50: '#f9e4ab',
    500: '#f4d987',
    950: '#000000',
  },
}
SCSS
$custom: #f4d987;
$custom-light: #f9e4ab;
$custom-dark: #000000;
JSON
{
  "hex": "#f4d987",
  "rgb": {
    "r": 244,
    "g": 217,
    "b": 135
  },
  "hsl": {
    "h": 45.138,
    "s": 83.206,
    "l": 74.314
  },
  "oklch": {
    "l": 0.89008,
    "c": 0.10595,
    "h": 91.8
  },
  "luminance": 0.70608
}

Semantic roles & 50–950 ramp

primary
#F4D987
secondary
#4F6FD0
accent
#3CE006
background
#FFFEFD
surface
#FFFCF7
border
#D7D5D0
text
#181510
muted
#868481

Preview Lab

Preview with #F4D987

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

Preview Lab → · Contrast checker → · Palette generator →

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