#F5E987#F5E987

#F5E987 is a very light, vivid yellow. Relative luminance 0.794; OKLCH L 92.3% C 0.120 H 102.3°. Best body text is #000000 at 16.89:1 contrast (WCAG AA passes).

Color values

HEX#F5E987
RGBrgb(245, 233, 135)
HSLhsl(53, 85%, 75%)
HSVhsv(53, 45%, 96%)
CMYKcmyk(0%, 4.9%, 44.9%, 3.9%)
CIE-LABlab(91.43, -9.04, 48.88)
CIE-LCHlch(91.43, 49.71, 100.48°)
OKLaboklab(92.3% -0.0256 0.1175)
OKLCHoklch(92.3% 0.12 102.3)
XYZxyz(71.1700, 79.4417, 34.5018)
Luminance0.7944 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E987 #8793F5
analogous
#F5B287 #F5E987 #CAF587
triadic
#F5E987 #87F5E9 #E987F5
tetradic
#F5E987 #87F5B2 #8793F5 #F587CA
square
#F5E987 #87F5B2 #8793F5 #F587CA
split-complementary
#F5E987 #87CAF5 #B287F5
monochromatic
#ECD416 #F0DF4F #F5E987 #FAF3BF #FDFAE3

Accessibility & contrast

On white

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

On black

16.89
#F5E987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E987
16.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E987#FFFFFF#000000##000000
##F5E9871.001.2416.8916.89
#FFFFFF1.241.0021.0021.00
#00000016.8921.001.001.00
##00000016.8921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f5e987;
/* rgb */ color: rgb(245, 233, 135);
/* oklch */ color: oklch(92.3% 0.120 102.3);
Tailwind
colors: {
  custom: {
    50: '#faefab',
    500: '#f5e987',
    950: '#000000',
  },
}
SCSS
$custom: #f5e987;
$custom-light: #faefab;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e987",
  "rgb": {
    "r": 245,
    "g": 233,
    "b": 135
  },
  "hsl": {
    "h": 53.455,
    "s": 84.615,
    "l": 74.51
  },
  "oklch": {
    "l": 0.92302,
    "c": 0.12029,
    "h": 102.3
  },
  "luminance": 0.7944
}

Semantic roles & 50–950 ramp

primary
#F5E987
secondary
#4E5DD2
accent
#1CE104
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181610
muted
#868581

Preview Lab

Preview with #F5E987

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

Preview Lab → · Contrast checker → · Palette generator →

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