#F7E478#F7E478

#F7E478 is a very light, vivid yellow. Relative luminance 0.766; OKLCH L 91.3% C 0.131 H 99.5°. Best body text is #000000 at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#F7E478
RGBrgb(247, 228, 120)
HSLhsl(51, 89%, 72%)
HSVhsv(51, 51%, 97%)
CMYKcmyk(0%, 7.7%, 51.4%, 3.1%)
CIE-LABlab(90.15, -7.08, 54.49)
CIE-LCHlch(90.15, 54.95, 97.41°)
OKLaboklab(91.26% -0.0216 0.1287)
OKLCHoklch(91.26% 0.131 99.5)
XYZxyz(69.4936, 76.6196, 28.8941)
Luminance0.7662 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7E478 #788BF7
analogous
#F7A578 #F7E478 #CAF778
triadic
#F7E478 #78F7E4 #E478F7
tetradic
#F7E478 #78F7A5 #788BF7 #F778CA
square
#F7E478 #78F7A5 #788BF7 #F778CA
split-complementary
#F7E478 #78CAF7 #A578F7
monochromatic
#E7C60E #F4D83E #F7E478 #FAF0B2 #FDF9E2

Accessibility & contrast

On white

1.29
#F7E478 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.32
#F7E478 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7E478
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7E478#FFFFFF#000000##000000
##F7E4781.001.2916.3216.32
#FFFFFF1.291.0021.0021.00
#00000016.3221.001.001.00
##00000016.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#F6DF6E
Deuteranopia (green-blind)
#FBE67D
Tritanopia (blue-blind)
#FFD7CB
Achromatopsia (no color)
#E3E3E3

Design tokens & code

CSS
--color: #f7e478;
/* rgb */ color: rgb(247, 228, 120);
/* oklch */ color: oklch(91.3% 0.131 99.5);
Tailwind
colors: {
  custom: {
    50: '#fceca1',
    500: '#f7e478',
    950: '#000000',
  },
}
SCSS
$custom: #f7e478;
$custom-light: #fceca1;
$custom-dark: #000000;
JSON
{
  "hex": "#f7e478",
  "rgb": {
    "r": 247,
    "g": 228,
    "b": 120
  },
  "hsl": {
    "h": 51.024,
    "s": 88.811,
    "l": 71.961
  },
  "oklch": {
    "l": 0.91263,
    "c": 0.13053,
    "h": 99.5
  },
  "luminance": 0.76617
}

Semantic roles & 50–950 ramp

primary
#F7E478
secondary
#4156D3
accent
#22E500
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160F
muted
#868480

Preview Lab

Preview with #F7E478

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

Preview Lab → · Contrast checker → · Palette generator →

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