#F9E178#F9E178

#F9E178 is a very light, vivid yellow. Relative luminance 0.753; OKLCH L 90.8% C 0.128 H 96.7°. Best body text is #000000 at 16.07:1 contrast (WCAG AA passes).

Color values

HEX#F9E178
RGBrgb(249, 225, 120)
HSLhsl(49, 91%, 72%)
HSVhsv(49, 52%, 98%)
CMYKcmyk(0%, 9.6%, 51.8%, 2.4%)
CIE-LABlab(89.56, -4.78, 53.83)
CIE-LCHlch(89.56, 54.04, 95.07°)
OKLaboklab(90.84% -0.015 0.1273)
OKLCHoklch(90.84% 0.128 96.7)
XYZxyz(69.3847, 75.3491, 28.6547)
Luminance0.7535 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9E178 #7890F9
analogous
#F9A078 #F9E178 #D1F978
triadic
#F9E178 #78F9E1 #E178F9
tetradic
#F9E178 #78F9A0 #7890F9 #F978D1
square
#F9E178 #78F9A0 #7890F9 #F978D1
split-complementary
#F9E178 #78D1F9 #A078F9
monochromatic
#ECC20A #F6D43D #F9E178 #FCEEB3 #FEF8E2

Accessibility & contrast

On white

1.31
#F9E178 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.07
#F9E178 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9E178
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9E178#FFFFFF#000000##000000
##F9E1781.001.3116.0716.07
#FFFFFF1.311.0021.0021.00
#00000016.0721.001.001.00
##00000016.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3DC6F
Deuteranopia (green-blind)
#FAE57C
Tritanopia (blue-blind)
#FFD3C9
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #f9e178;
/* rgb */ color: rgb(249, 225, 120);
/* oklch */ color: oklch(90.8% 0.128 96.7);
Tailwind
colors: {
  custom: {
    50: '#feeaa1',
    500: '#f9e178',
    950: '#000000',
  },
}
SCSS
$custom: #f9e178;
$custom-light: #feeaa1;
$custom-dark: #000000;
JSON
{
  "hex": "#f9e178",
  "rgb": {
    "r": 249,
    "g": 225,
    "b": 120
  },
  "hsl": {
    "h": 48.837,
    "s": 91.489,
    "l": 72.353
  },
  "oklch": {
    "l": 0.90836,
    "c": 0.12814,
    "h": 96.7
  },
  "luminance": 0.75346
}

Semantic roles & 50–950 ramp

primary
#F9E178
secondary
#405CD5
accent
#2BE600
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160F
muted
#868480

Preview Lab

Preview with #F9E178

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

Preview Lab → · Contrast checker → · Palette generator →

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