#F9F173#F9F173

#F9F173 is a very light, vivid yellow. Relative luminance 0.843; OKLCH L 94.0% C 0.147 H 105.6°. Best body text is #000000 at 17.86:1 contrast (WCAG AA passes).

Color values

HEX#F9F173
RGBrgb(249, 241, 115)
HSLhsl(56, 92%, 71%)
HSVhsv(56, 54%, 98%)
CMYKcmyk(0%, 3.2%, 53.8%, 2.4%)
CIE-LABlab(93.58, -13.13, 60.83)
CIE-LCHlch(93.58, 62.23, 102.18°)
OKLaboklab(94.01% -0.0396 0.142)
OKLCHoklch(94.01% 0.147 105.6)
XYZxyz(73.6189, 84.2904, 28.6080)
Luminance0.8429 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9F173 #737BF9
analogous
#F9AE73 #F9F173 #BEF973
triadic
#F9F173 #73F9F1 #F173F9
tetradic
#F9F173 #73F9AE #737BF9 #F973BE
square
#F9F173 #73F9AE #737BF9 #F973BE
split-complementary
#F9F173 #73BEF9 #AE73F9
monochromatic
#E8DA0A #F6EB38 #F9F173 #FCF7AE #FEFCE2

Accessibility & contrast

On white

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

On black

17.86
#F9F173 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9F173
17.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9F173#FFFFFF#000000##000000
##F9F1731.001.1817.8617.86
#FFFFFF1.181.0021.0021.00
#00000017.8621.001.001.00
##00000017.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE967
Deuteranopia (green-blind)
#FFEF79
Tritanopia (blue-blind)
#FFE3D5
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #f9f173;
/* rgb */ color: rgb(249, 241, 115);
/* oklch */ color: oklch(94.0% 0.147 105.6);
Tailwind
colors: {
  custom: {
    50: '#fef59f',
    500: '#f9f173',
    950: '#000000',
  },
}
SCSS
$custom: #f9f173;
$custom-light: #fef59f;
$custom-dark: #000000;
JSON
{
  "hex": "#f9f173",
  "rgb": {
    "r": 249,
    "g": 241,
    "b": 115
  },
  "hsl": {
    "h": 56.418,
    "s": 91.781,
    "l": 71.373
  },
  "oklch": {
    "l": 0.94008,
    "c": 0.14737,
    "h": 105.6
  },
  "luminance": 0.84288
}

Semantic roles & 50–950 ramp

primary
#F9F173
secondary
#3C45D4
accent
#0EE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F9F173

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

Preview Lab → · Contrast checker → · Palette generator →

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