#F7E978#F7E978

#F7E978 is a very light, vivid yellow. Relative luminance 0.794; OKLCH L 92.3% C 0.135 H 102.3°. Best body text is #000000 at 16.88:1 contrast (WCAG AA passes).

Color values

HEX#F7E978
RGBrgb(247, 233, 120)
HSLhsl(53, 89%, 72%)
HSVhsv(53, 51%, 97%)
CMYKcmyk(0%, 5.7%, 51.4%, 3.1%)
CIE-LABlab(91.42, -9.58, 56.00)
CIE-LCHlch(91.42, 56.81, 99.71°)
OKLaboklab(92.27% -0.0288 0.132)
OKLCHoklch(92.27% 0.135 102.3)
XYZxyz(70.8890, 79.4105, 29.3593)
Luminance0.7941 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7E978 #7886F7
analogous
#F7AA78 #F7E978 #C6F778
triadic
#F7E978 #78F7E9 #E978F7
tetradic
#F7E978 #78F7AA #7886F7 #F778C6
square
#F7E978 #78F7AA #7886F7 #F778C6
split-complementary
#F7E978 #78C6F7 #AA78F7
monochromatic
#E7CF0E #F4E03E #F7E978 #FAF2B2 #FDFAE2

Accessibility & contrast

On white

1.24
#F7E978 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.88
#F7E978 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7E978
16.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7E978#FFFFFF#000000##000000
##F7E9781.001.2416.8816.88
#FFFFFF1.241.0021.0021.00
#00000016.8821.001.001.00
##00000016.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FBE36E
Deuteranopia (green-blind)
#FFE97D
Tritanopia (blue-blind)
#FFDCCF
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #f7e978;
/* rgb */ color: rgb(247, 233, 120);
/* oklch */ color: oklch(92.3% 0.135 102.3);
Tailwind
colors: {
  custom: {
    50: '#fcefa2',
    500: '#f7e978',
    950: '#000000',
  },
}
SCSS
$custom: #f7e978;
$custom-light: #fcefa2;
$custom-dark: #000000;
JSON
{
  "hex": "#f7e978",
  "rgb": {
    "r": 247,
    "g": 233,
    "b": 120
  },
  "hsl": {
    "h": 53.386,
    "s": 88.811,
    "l": 71.961
  },
  "oklch": {
    "l": 0.92273,
    "c": 0.13512,
    "h": 102.3
  },
  "luminance": 0.79408
}

Semantic roles & 50–950 ramp

primary
#F7E978
secondary
#4151D3
accent
#19E500
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18160F
muted
#868580

Preview Lab

Preview with #F7E978

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

Preview Lab → · Contrast checker → · Palette generator →

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