#F9E87F#F9E87F

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

Color values

HEX#F9E87F
RGBrgb(249, 232, 127)
HSLhsl(52, 91%, 74%)
HSVhsv(52, 49%, 98%)
CMYKcmyk(0%, 6.8%, 49%, 2.4%)
CIE-LABlab(91.41, -7.69, 52.75)
CIE-LCHlch(91.41, 53.31, 98.30°)
OKLaboklab(92.33% -0.0227 0.1255)
OKLCHoklch(92.33% 0.128 100.3)
XYZxyz(71.7564, 79.3878, 31.6181)
Luminance0.7938 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9E87F #7F90F9
analogous
#F9AB7F #F9E87F #CDF97F
triadic
#F9E87F #7FF9E8 #E87FF9
tetradic
#F9E87F #7FF9AB #7F90F9 #F97FCD
square
#F9E87F #7FF9AB #7F90F9 #F97FCD
split-complementary
#F9E87F #7FCDF9 #AB7FF9
monochromatic
#F2D20B #F6DD45 #F9E87F #FCF3B9 #FEFAE2

Accessibility & contrast

On white

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

On black

16.88
#F9E87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9E87F
16.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9E87F#FFFFFF#000000##000000
##F9E87F1.001.2416.8816.88
#FFFFFF1.241.0021.0021.00
#00000016.8821.001.001.00
##00000016.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#F9E276
Deuteranopia (green-blind)
#FEE984
Tritanopia (blue-blind)
#FFDBCF
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #f9e87f;
/* rgb */ color: rgb(249, 232, 127);
/* oklch */ color: oklch(92.3% 0.128 100.3);
Tailwind
colors: {
  custom: {
    50: '#fdefa6',
    500: '#f9e87f',
    950: '#000000',
  },
}
SCSS
$custom: #f9e87f;
$custom-light: #fdefa6;
$custom-dark: #000000;
JSON
{
  "hex": "#f9e87f",
  "rgb": {
    "r": 249,
    "g": 232,
    "b": 127
  },
  "hsl": {
    "h": 51.639,
    "s": 91.045,
    "l": 73.725
  },
  "oklch": {
    "l": 0.9233,
    "c": 0.12752,
    "h": 100.3
  },
  "luminance": 0.79385
}

Semantic roles & 50–950 ramp

primary
#F9E87F
secondary
#465AD6
accent
#20E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #F9E87F

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

Preview Lab → · Contrast checker → · Palette generator →

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