#F9F178#F9F178

#F9F178 is a very light, vivid yellow. Relative luminance 0.844; OKLCH L 94.1% C 0.143 H 105.4°. Best body text is #000000 at 17.88:1 contrast (WCAG AA passes).

Color values

HEX#F9F178
RGBrgb(249, 241, 120)
HSLhsl(56, 91%, 72%)
HSVhsv(56, 52%, 98%)
CMYKcmyk(0%, 3.2%, 51.8%, 2.4%)
CIE-LABlab(93.63, -12.74, 58.63)
CIE-LCHlch(93.63, 60.00, 102.25°)
OKLaboklab(94.07% -0.0379 0.1377)
OKLCHoklch(94.07% 0.143 105.4)
XYZxyz(73.9145, 84.4086, 30.1646)
Luminance0.8441 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9F178 #7880F9
analogous
#F9B178 #F9F178 #C1F978
triadic
#F9F178 #78F9F1 #F178F9
tetradic
#F9F178 #78F9B1 #7880F9 #F978C1
square
#F9F178 #78F9B1 #7880F9 #F978C1
split-complementary
#F9F178 #78C1F9 #B178F9
monochromatic
#ECDE0A #F6EB3D #F9F178 #FCF7B3 #FEFCE2

Accessibility & contrast

On white

1.17
#F9F178 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.88
#F9F178 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9F178
17.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9F178#FFFFFF#000000##000000
##F9F1781.001.1717.8817.88
#FFFFFF1.171.0021.0021.00
#00000017.8821.001.001.00
##00000017.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE96D
Deuteranopia (green-blind)
#FFEF7E
Tritanopia (blue-blind)
#FFE4D6
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #f9f178;
/* rgb */ color: rgb(249, 241, 120);
/* oklch */ color: oklch(94.1% 0.143 105.4);
Tailwind
colors: {
  custom: {
    50: '#fef5a2',
    500: '#f9f178',
    950: '#000000',
  },
}
SCSS
$custom: #f9f178;
$custom-light: #fef5a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f9f178",
  "rgb": {
    "r": 249,
    "g": 241,
    "b": 120
  },
  "hsl": {
    "h": 56.279,
    "s": 91.489,
    "l": 72.353
  },
  "oklch": {
    "l": 0.94065,
    "c": 0.14285,
    "h": 105.4
  },
  "luminance": 0.84406
}

Semantic roles & 50–950 ramp

primary
#F9F178
secondary
#4049D5
accent
#0EE600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #F9F178

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

Preview Lab → · Contrast checker → · Palette generator →

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