#F9E87B#F9E87B

#F9E87B is a very light, vivid yellow. Relative luminance 0.793; OKLCH L 92.3% C 0.131 H 100.6°. Best body text is #000000 at 16.86:1 contrast (WCAG AA passes).

Color values

HEX#F9E87B
RGBrgb(249, 232, 123)
HSLhsl(52, 91%, 73%)
HSVhsv(52, 51%, 98%)
CMYKcmyk(0%, 6.8%, 50.6%, 2.4%)
CIE-LABlab(91.36, -8.04, 54.57)
CIE-LCHlch(91.36, 55.16, 98.38°)
OKLaboklab(92.28% -0.0241 0.1291)
OKLCHoklch(92.28% 0.131 100.6)
XYZxyz(71.5009, 79.2856, 30.2723)
Luminance0.7928 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9E87B #7B8CF9
analogous
#F9A97B #F9E87B #CBF97B
triadic
#F9E87B #7BF9E8 #E87BF9
tetradic
#F9E87B #7BF9A9 #7B8CF9 #F97BCB
square
#F9E87B #7BF9A9 #7B8CF9 #F97BCB
split-complementary
#F9E87B #7BCBF9 #A97BF9
monochromatic
#EFD00B #F6DE40 #F9E87B #FCF2B6 #FEFAE2

Accessibility & contrast

On white

1.25
#F9E87B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.86
#F9E87B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9E87B
16.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9E87B#FFFFFF#000000##000000
##F9E87B1.001.2516.8616.86
#FFFFFF1.251.0021.0021.00
#00000016.8621.001.001.00
##00000016.8621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f9e87b;
/* rgb */ color: rgb(249, 232, 123);
/* oklch */ color: oklch(92.3% 0.131 100.6);
Tailwind
colors: {
  custom: {
    50: '#fdefa4',
    500: '#f9e87b',
    950: '#000000',
  },
}
SCSS
$custom: #f9e87b;
$custom-light: #fdefa4;
$custom-dark: #000000;
JSON
{
  "hex": "#f9e87b",
  "rgb": {
    "r": 249,
    "g": 232,
    "b": 123
  },
  "hsl": {
    "h": 51.905,
    "s": 91.304,
    "l": 72.941
  },
  "oklch": {
    "l": 0.92278,
    "c": 0.13138,
    "h": 100.6
  },
  "luminance": 0.79283
}

Semantic roles & 50–950 ramp

primary
#F9E87B
secondary
#4356D6
accent
#1FE600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #F9E87B

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

Preview Lab → · Contrast checker → · Palette generator →

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