#F7D978#F7D978

#F7D978 is a very light, vivid yellow. Relative luminance 0.708; OKLCH L 89.1% C 0.122 H 92.6°. Best body text is #000000 at 15.15:1 contrast (WCAG AA passes).

Color values

HEX#F7D978
RGBrgb(247, 217, 120)
HSLhsl(46, 89%, 72%)
HSVhsv(46, 51%, 97%)
CMYKcmyk(0%, 12.1%, 51.4%, 3.1%)
CIE-LABlab(87.37, -1.53, 51.16)
CIE-LCHlch(87.37, 51.19, 91.71°)
OKLaboklab(89.07% -0.0055 0.1214)
OKLCHoklch(89.07% 0.122 92.6)
XYZxyz(66.5632, 70.7589, 27.9173)
Luminance0.7076 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7D978 #7896F7
analogous
#F79A78 #F7D978 #D5F778
triadic
#F7D978 #78F7D9 #D978F7
tetradic
#F7D978 #78F79A #7896F7 #F778D5
square
#F7D978 #78F79A #7896F7 #F778D5
split-complementary
#F7D978 #78D5F7 #9A78F7
monochromatic
#E7B40E #F4C93E #F7D978 #FAE9B2 #FDF7E2

Accessibility & contrast

On white

1.39
#F7D978 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.15
#F7D978 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7D978
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7D978#FFFFFF#000000##000000
##F7D9781.001.3915.1515.15
#FFFFFF1.391.0021.0021.00
#00000015.1521.001.001.00
##00000015.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD670
Deuteranopia (green-blind)
#F3DF7C
Tritanopia (blue-blind)
#FFCCC2
Achromatopsia (no color)
#DBDBDB

Design tokens & code

CSS
--color: #f7d978;
/* rgb */ color: rgb(247, 217, 120);
/* oklch */ color: oklch(89.1% 0.122 92.6);
Tailwind
colors: {
  custom: {
    50: '#fce4a1',
    500: '#f7d978',
    950: '#000000',
  },
}
SCSS
$custom: #f7d978;
$custom-light: #fce4a1;
$custom-dark: #000000;
JSON
{
  "hex": "#f7d978",
  "rgb": {
    "r": 247,
    "g": 217,
    "b": 120
  },
  "hsl": {
    "h": 45.827,
    "s": 88.811,
    "l": 71.961
  },
  "oklch": {
    "l": 0.89065,
    "c": 0.12157,
    "h": 92.6
  },
  "luminance": 0.70756
}

Semantic roles & 50–950 ramp

primary
#F7D978
secondary
#4163D3
accent
#36E500
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150F
muted
#868480

Preview Lab

Preview with #F7D978

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

Preview Lab → · Contrast checker → · Palette generator →

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