#F9F873#F9F873

#F9F873 is a very light, vivid yellow. Relative luminance 0.885; OKLCH L 95.4% C 0.154 H 108.6°. Best body text is #000000 at 18.70:1 contrast (WCAG AA passes).

Color values

HEX#F9F873
RGBrgb(249, 248, 115)
HSLhsl(60, 92%, 71%)
HSVhsv(60, 54%, 98%)
CMYKcmyk(0%, 0.4%, 53.8%, 2.4%)
CIE-LABlab(95.38, -16.54, 62.89)
CIE-LCHlch(95.38, 65.03, 104.73°)
OKLaboklab(95.44% -0.0493 0.1464)
OKLCHoklch(95.44% 0.154 108.6)
XYZxyz(75.7309, 88.5143, 29.3120)
Luminance0.8851 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9F873 #7374F9
analogous
#F9B573 #F9F873 #B7F973
triadic
#F9F873 #73F9F8 #F873F9
tetradic
#F9F873 #73F9B5 #7374F9 #F973B7
square
#F9F873 #73F9B5 #7374F9 #F973B7
split-complementary
#F9F873 #73B7F9 #B573F9
monochromatic
#E8E60A #F6F538 #F9F873 #FCFBAE #FEFEE2

Accessibility & contrast

On white

1.12
#F9F873 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.70
#F9F873 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9F873
18.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9F873#FFFFFF#000000##000000
##F9F8731.001.1218.7018.70
#FFFFFF1.121.0021.0021.00
#00000018.7021.001.001.00
##00000018.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF66
Deuteranopia (green-blind)
#FFF47A
Tritanopia (blue-blind)
#FFEADB
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #f9f873;
/* rgb */ color: rgb(249, 248, 115);
/* oklch */ color: oklch(95.4% 0.154 108.6);
Tailwind
colors: {
  custom: {
    50: '#fefa9f',
    500: '#f9f873',
    950: '#000000',
  },
}
SCSS
$custom: #f9f873;
$custom-light: #fefa9f;
$custom-dark: #000000;
JSON
{
  "hex": "#f9f873",
  "rgb": {
    "r": 249,
    "g": 248,
    "b": 115
  },
  "hsl": {
    "h": 59.552,
    "s": 91.781,
    "l": 71.373
  },
  "oklch": {
    "l": 0.95442,
    "c": 0.15447,
    "h": 108.6
  },
  "luminance": 0.88512
}

Semantic roles & 50–950 ramp

primary
#F9F873
secondary
#3C3DD4
accent
#02E600
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F9F873

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

Preview Lab → · Contrast checker → · Palette generator →

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