#F9EF87#F9EF87

#F9EF87 is a very light, vivid yellow. Relative luminance 0.836; OKLCH L 93.8% C 0.126 H 103.7°. Best body text is #000000 at 17.72:1 contrast (WCAG AA passes).

Color values

HEX#F9EF87
RGBrgb(249, 239, 135)
HSLhsl(55, 90%, 75%)
HSVhsv(55, 46%, 98%)
CMYKcmyk(0%, 4%, 45.8%, 2.4%)
CIE-LABlab(93.29, -10.45, 51.23)
CIE-LCHlch(93.29, 52.29, 101.53°)
OKLaboklab(93.85% -0.0299 0.1227)
OKLCHoklch(93.85% 0.126 103.7)
XYZxyz(74.3084, 83.6242, 35.1437)
Luminance0.8362 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9EF87 #8791F9
analogous
#F9B687 #F9EF87 #CAF987
triadic
#F9EF87 #87F9EF #EF87F9
tetradic
#F9EF87 #87F9B6 #8791F9 #F987CA
square
#F9EF87 #87F9B6 #8791F9 #F987CA
split-complementary
#F9EF87 #87CAF9 #B687F9
monochromatic
#F3DF12 #F6E74D #F9EF87 #FCF7C1 #FEFBE2

Accessibility & contrast

On white

1.18
#F9EF87 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.72
#F9EF87 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9EF87
17.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9EF87#FFFFFF#000000##000000
##F9EF871.001.1817.7217.72
#FFFFFF1.181.0021.0021.00
#00000017.7221.001.001.00
##00000017.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE97E
Deuteranopia (green-blind)
#FFEE8C
Tritanopia (blue-blind)
#FFE3D6
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #f9ef87;
/* rgb */ color: rgb(249, 239, 135);
/* oklch */ color: oklch(93.8% 0.126 103.7);
Tailwind
colors: {
  custom: {
    50: '#fdf4ac',
    500: '#f9ef87',
    950: '#000000',
  },
}
SCSS
$custom: #f9ef87;
$custom-light: #fdf4ac;
$custom-dark: #000000;
JSON
{
  "hex": "#f9ef87",
  "rgb": {
    "r": 249,
    "g": 239,
    "b": 135
  },
  "hsl": {
    "h": 54.737,
    "s": 90.476,
    "l": 75.294
  },
  "oklch": {
    "l": 0.9385,
    "c": 0.12632,
    "h": 103.7
  },
  "luminance": 0.83622
}

Semantic roles & 50–950 ramp

primary
#F9EF87
secondary
#4D59D7
accent
#14E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #F9EF87

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

Preview Lab → · Contrast checker → · Palette generator →

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