#F9D873#F9D873

#F9D873 is a very light, vivid yellow. Relative luminance 0.705; OKLCH L 89.0% C 0.126 H 91.6°. Best body text is #000000 at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#F9D873
RGBrgb(249, 216, 115)
HSLhsl(45, 92%, 71%)
HSVhsv(45, 54%, 98%)
CMYKcmyk(0%, 13.3%, 53.8%, 2.4%)
CIE-LABlab(87.24, -0.62, 53.43)
CIE-LCHlch(87.24, 53.43, 90.67°)
OKLaboklab(88.99% -0.0036 0.1259)
OKLCHoklch(88.99% 0.126 91.6)
XYZxyz(66.7199, 70.4925, 26.3084)
Luminance0.7049 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9D873 #7394F9
analogous
#F99573 #F9D873 #D7F973
triadic
#F9D873 #73F9D8 #D873F9
tetradic
#F9D873 #73F995 #7394F9 #F973D7
square
#F9D873 #73F995 #7394F9 #F973D7
split-complementary
#F9D873 #73D7F9 #9573F9
monochromatic
#E8B10A #F6C838 #F9D873 #FCE8AE #FEF7E2

Accessibility & contrast

On white

1.39
#F9D873 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.10
#F9D873 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9D873
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9D873#FFFFFF#000000##000000
##F9D8731.001.3915.1015.10
#FFFFFF1.391.0021.0021.00
#00000015.1021.001.001.00
##00000015.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD56A
Deuteranopia (green-blind)
#F3DF77
Tritanopia (blue-blind)
#FFCAC1
Achromatopsia (no color)
#DBDBDB

Design tokens & code

CSS
--color: #f9d873;
/* rgb */ color: rgb(249, 216, 115);
/* oklch */ color: oklch(89.0% 0.126 91.6);
Tailwind
colors: {
  custom: {
    50: '#fee39e',
    500: '#f9d873',
    950: '#000000',
  },
}
SCSS
$custom: #f9d873;
$custom-light: #fee39e;
$custom-dark: #000000;
JSON
{
  "hex": "#f9d873",
  "rgb": {
    "r": 249,
    "g": 216,
    "b": 115
  },
  "hsl": {
    "h": 45.224,
    "s": 91.781,
    "l": 71.373
  },
  "oklch": {
    "l": 0.88986,
    "c": 0.12597,
    "h": 91.6
  },
  "luminance": 0.70489
}

Semantic roles & 50–950 ramp

primary
#F9D873
secondary
#3C61D4
accent
#39E600
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F

Preview Lab

Preview with #F9D873

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

Preview Lab → · Contrast checker → · Palette generator →

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