#F8D978#F8D978

#F8D978 is a very light, vivid yellow. Relative luminance 0.709; OKLCH L 89.2% C 0.122 H 92.1°. Best body text is #000000 at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#F8D978
RGBrgb(248, 217, 120)
HSLhsl(45, 90%, 72%)
HSVhsv(45, 52%, 97%)
CMYKcmyk(0%, 12.5%, 51.6%, 2.7%)
CIE-LABlab(87.46, -1.13, 51.29)
CIE-LCHlch(87.46, 51.30, 91.26°)
OKLaboklab(89.16% -0.0044 0.1217)
OKLCHoklch(89.16% 0.122 92.1)
XYZxyz(66.9169, 70.9413, 27.9339)
Luminance0.7094 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8D978 #7897F8
analogous
#F89978 #F8D978 #D7F878
triadic
#F8D978 #78F8D9 #D978F8
tetradic
#F8D978 #78F899 #7897F8 #F878D7
square
#F8D978 #78F899 #7897F8 #F878D7
split-complementary
#F8D978 #78D7F8 #9978F8
monochromatic
#E9B40C #F5C93E #F8D978 #FBE9B2 #FDF7E2

Accessibility & contrast

On white

1.38
#F8D978 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.19
#F8D978 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8D978
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8D978#FFFFFF#000000##000000
##F8D9781.001.3815.1915.19
#FFFFFF1.381.0021.0021.00
#00000015.1921.001.001.00
##00000015.1921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f8d978;
/* rgb */ color: rgb(248, 217, 120);
/* oklch */ color: oklch(89.2% 0.122 92.1);
Tailwind
colors: {
  custom: {
    50: '#fde4a1',
    500: '#f8d978',
    950: '#000000',
  },
}
SCSS
$custom: #f8d978;
$custom-light: #fde4a1;
$custom-dark: #000000;
JSON
{
  "hex": "#f8d978",
  "rgb": {
    "r": 248,
    "g": 217,
    "b": 120
  },
  "hsl": {
    "h": 45.469,
    "s": 90.141,
    "l": 72.157
  },
  "oklch": {
    "l": 0.89156,
    "c": 0.12179,
    "h": 92.1
  },
  "luminance": 0.70938
}

Semantic roles & 50–950 ramp

primary
#F8D978
secondary
#4064D4
accent
#38E600
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150F
muted
#868480

Preview Lab

Preview with #F8D978

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

Preview Lab → · Contrast checker → · Palette generator →

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