#F8DC78#F8DC78

#F8DC78 is a very light, vivid yellow. Relative luminance 0.725; OKLCH L 89.8% C 0.124 H 94.1°. Best body text is #000000 at 15.50:1 contrast (WCAG AA passes).

Color values

HEX#F8DC78
RGBrgb(248, 220, 120)
HSLhsl(47, 90%, 72%)
HSVhsv(47, 52%, 97%)
CMYKcmyk(0%, 11.3%, 51.6%, 2.7%)
CIE-LABlab(88.21, -2.65, 52.20)
CIE-LCHlch(88.21, 52.26, 92.91°)
OKLaboklab(89.75% -0.0088 0.1237)
OKLCHoklch(89.75% 0.124 94.1)
XYZxyz(67.6972, 72.5019, 28.1940)
Luminance0.7250 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8DC78 #7894F8
analogous
#F89C78 #F8DC78 #D4F878
triadic
#F8DC78 #78F8DC #DC78F8
tetradic
#F8DC78 #78F89C #7894F8 #F878D4
square
#F8DC78 #78F89C #7894F8 #F878D4
split-complementary
#F8DC78 #78D4F8 #9C78F8
monochromatic
#E9B90C #F5CD3E #F8DC78 #FBEBB2 #FDF7E2

Accessibility & contrast

On white

1.35
#F8DC78 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.50
#F8DC78 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8DC78
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8DC78#FFFFFF#000000##000000
##F8DC781.001.3515.5015.50
#FFFFFF1.351.0021.0021.00
#00000015.5021.001.001.00
##00000015.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#EED86F
Deuteranopia (green-blind)
#F6E17C
Tritanopia (blue-blind)
#FFCEC5
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #f8dc78;
/* rgb */ color: rgb(248, 220, 120);
/* oklch */ color: oklch(89.8% 0.124 94.1);
Tailwind
colors: {
  custom: {
    50: '#fde6a1',
    500: '#f8dc78',
    950: '#000000',
  },
}
SCSS
$custom: #f8dc78;
$custom-light: #fde6a1;
$custom-dark: #000000;
JSON
{
  "hex": "#f8dc78",
  "rgb": {
    "r": 248,
    "g": 220,
    "b": 120
  },
  "hsl": {
    "h": 46.875,
    "s": 90.141,
    "l": 72.157
  },
  "oklch": {
    "l": 0.89751,
    "c": 0.12402,
    "h": 94.1
  },
  "luminance": 0.72499
}

Semantic roles & 50–950 ramp

primary
#F8DC78
secondary
#4061D4
accent
#32E600
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150F
muted
#868480

Preview Lab

Preview with #F8DC78

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

Preview Lab → · Contrast checker → · Palette generator →

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