#F7E987#F7E987

#F7E987 is a very light, vivid yellow. Relative luminance 0.798; OKLCH L 92.5% C 0.120 H 101.2°. Best body text is #000000 at 16.96:1 contrast (WCAG AA passes).

Color values

HEX#F7E987
RGBrgb(247, 233, 135)
HSLhsl(53, 88%, 75%)
HSVhsv(53, 45%, 97%)
CMYKcmyk(0%, 5.7%, 45.3%, 3.1%)
CIE-LABlab(91.60, -8.26, 49.12)
CIE-LCHlch(91.60, 49.81, 99.54°)
OKLaboklab(92.47% -0.0235 0.118)
OKLCHoklch(92.47% 0.12 101.2)
XYZxyz(71.8716, 79.8035, 34.5347)
Luminance0.7980 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7E987 #8795F7
analogous
#F7B187 #F7E987 #CDF787
triadic
#F7E987 #87F7E9 #E987F7
tetradic
#F7E987 #87F7B1 #8795F7 #F787CD
square
#F7E987 #87F7B1 #8795F7 #F787CD
split-complementary
#F7E987 #87CDF7 #B187F7
monochromatic
#EFD414 #F3DE4E #F7E987 #FBF4C0 #FDFAE2

Accessibility & contrast

On white

1.24
#F7E987 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.96
#F7E987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7E987
16.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7E987#FFFFFF#000000##000000
##F7E9871.001.2416.9616.96
#FFFFFF1.241.0021.0021.00
#00000016.9621.001.001.00
##00000016.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#F9E37F
Deuteranopia (green-blind)
#FEEA8B
Tritanopia (blue-blind)
#FFDDD2
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #f7e987;
/* rgb */ color: rgb(247, 233, 135);
/* oklch */ color: oklch(92.5% 0.120 101.2);
Tailwind
colors: {
  custom: {
    50: '#fcefab',
    500: '#f7e987',
    950: '#000000',
  },
}
SCSS
$custom: #f7e987;
$custom-light: #fcefab;
$custom-dark: #000000;
JSON
{
  "hex": "#f7e987",
  "rgb": {
    "r": 247,
    "g": 233,
    "b": 135
  },
  "hsl": {
    "h": 52.5,
    "s": 87.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.9247,
    "c": 0.12035,
    "h": 101.2
  },
  "luminance": 0.79801
}

Semantic roles & 50–950 ramp

primary
#F7E987
secondary
#4E5FD4
accent
#1EE401
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181610
muted
#868581

Preview Lab

Preview with #F7E987

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

Preview Lab → · Contrast checker → · Palette generator →

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