#F8E987#F8E987

#F8E987 is a very light, vivid yellow. Relative luminance 0.800; OKLCH L 92.6% C 0.120 H 100.7°. Best body text is #000000 at 17.00:1 contrast (WCAG AA passes).

Color values

HEX#F8E987
RGBrgb(248, 233, 135)
HSLhsl(52, 89%, 75%)
HSVhsv(52, 46%, 97%)
CMYKcmyk(0%, 6%, 45.6%, 2.7%)
CIE-LABlab(91.68, -7.86, 49.24)
CIE-LCHlch(91.68, 49.86, 99.07°)
OKLaboklab(92.56% -0.0224 0.1183)
OKLCHoklch(92.56% 0.12 100.7)
XYZxyz(72.2253, 79.9859, 34.5512)
Luminance0.7998 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E987 #8796F8
analogous
#F8B087 #F8E987 #CFF887
triadic
#F8E987 #87F8E9 #E987F8
tetradic
#F8E987 #87F8B0 #8796F8 #F887CF
square
#F8E987 #87F8B0 #8796F8 #F887CF
split-complementary
#F8E987 #87CFF8 #B087F8
monochromatic
#F1D413 #F5DE4D #F8E987 #FBF4C1 #FDFAE2

Accessibility & contrast

On white

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

On black

17.00
#F8E987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E987
17.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E987#FFFFFF#000000##000000
##F8E9871.001.2417.0017.00
#FFFFFF1.241.0021.0021.00
#00000017.0021.001.001.00
##00000017.0021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f8e987;
/* rgb */ color: rgb(248, 233, 135);
/* oklch */ color: oklch(92.6% 0.120 100.7);
Tailwind
colors: {
  custom: {
    50: '#fcefac',
    500: '#f8e987',
    950: '#000000',
  },
}
SCSS
$custom: #f8e987;
$custom-light: #fcefac;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e987",
  "rgb": {
    "r": 248,
    "g": 233,
    "b": 135
  },
  "hsl": {
    "h": 52.035,
    "s": 88.976,
    "l": 75.098
  },
  "oklch": {
    "l": 0.92555,
    "c": 0.1204,
    "h": 100.7
  },
  "luminance": 0.79984
}

Semantic roles & 50–950 ramp

primary
#F8E987
secondary
#4D60D6
accent
#1EE600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181610
muted
#868581

Preview Lab

Preview with #F8E987

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

Preview Lab → · Contrast checker → · Palette generator →

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