#F9F478#F9F478

#F9F478 is a very light, vivid yellow. Relative luminance 0.862; OKLCH L 94.7% C 0.146 H 106.8°. Best body text is #000000 at 18.24:1 contrast (WCAG AA passes).

Color values

HEX#F9F478
RGBrgb(249, 244, 120)
HSLhsl(58, 91%, 72%)
HSVhsv(58, 52%, 98%)
CMYKcmyk(0%, 2%, 51.8%, 2.4%)
CIE-LABlab(94.40, -14.20, 59.53)
CIE-LCHlch(94.40, 61.20, 103.42°)
OKLaboklab(94.68% -0.0421 0.1397)
OKLCHoklch(94.68% 0.146 106.8)
XYZxyz(74.8098, 86.1993, 30.4630)
Luminance0.8620 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9F478 #787DF9
analogous
#F9B378 #F9F478 #BEF978
triadic
#F9F478 #78F9F4 #F478F9
tetradic
#F9F478 #78F9B3 #787DF9 #F978BE
square
#F9F478 #78F9B3 #787DF9 #F978BE
split-complementary
#F9F478 #78BEF9 #B378F9
monochromatic
#ECE30A #F6EF3D #F9F478 #FCF9B3 #FEFDE2

Accessibility & contrast

On white

1.15
#F9F478 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.24
#F9F478 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9F478
18.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9F478#FFFFFF#000000##000000
##F9F4781.001.1518.2418.24
#FFFFFF1.151.0021.0021.00
#00000018.2421.001.001.00
##00000018.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC6C
Deuteranopia (green-blind)
#FFF17E
Tritanopia (blue-blind)
#FFE7D8
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #f9f478;
/* rgb */ color: rgb(249, 244, 120);
/* oklch */ color: oklch(94.7% 0.146 106.8);
Tailwind
colors: {
  custom: {
    50: '#fef7a2',
    500: '#f9f478',
    950: '#000000',
  },
}
SCSS
$custom: #f9f478;
$custom-light: #fef7a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f9f478",
  "rgb": {
    "r": 249,
    "g": 244,
    "b": 120
  },
  "hsl": {
    "h": 57.674,
    "s": 91.489,
    "l": 72.353
  },
  "oklch": {
    "l": 0.94678,
    "c": 0.14588,
    "h": 106.8
  },
  "luminance": 0.86197
}

Semantic roles & 50–950 ramp

primary
#F9F478
secondary
#4046D5
accent
#09E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #F9F478

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

Preview Lab → · Contrast checker → · Palette generator →

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