#F8F978#F8F978

#F8F978 is a very light, vivid yellow. Relative luminance 0.891; OKLCH L 95.6% C 0.151 H 109.4°. Best body text is #000000 at 18.81:1 contrast (WCAG AA passes).

Color values

HEX#F8F978
RGBrgb(248, 249, 120)
HSLhsl(60, 91%, 72%)
HSVhsv(60, 52%, 98%)
CMYKcmyk(0.4%, 0%, 51.8%, 2.4%)
CIE-LABlab(95.61, -17.03, 60.92)
CIE-LCHlch(95.61, 63.25, 105.62°)
OKLaboklab(95.62% -0.0501 0.1427)
OKLCHoklch(95.62% 0.151 109.4)
XYZxyz(75.9791, 89.0657, 30.9547)
Luminance0.8906 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F978 #7978F9
analogous
#F9B978 #F8F978 #B8F978
triadic
#F8F978 #78F8F9 #F978F8
tetradic
#F8F978 #78F9B9 #7978F9 #F978B8
square
#F8F978 #78F9B9 #7978F9 #F978B8
split-complementary
#F8F978 #78B8F9 #B978F9
monochromatic
#EAEC0A #F5F63D #F8F978 #FBFCB3 #FDFEE2

Accessibility & contrast

On white

1.12
#F8F978 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.81
#F8F978 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F978
18.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F978#FFFFFF#000000##000000
##F8F9781.001.1218.8118.81
#FFFFFF1.121.0021.0021.00
#00000018.8121.001.001.00
##00000018.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF06B
Deuteranopia (green-blind)
#FFF57F
Tritanopia (blue-blind)
#FFECDC
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #f8f978;
/* rgb */ color: rgb(248, 249, 120);
/* oklch */ color: oklch(95.6% 0.151 109.4);
Tailwind
colors: {
  custom: {
    50: '#fdfba2',
    500: '#f8f978',
    950: '#000000',
  },
}
SCSS
$custom: #f8f978;
$custom-light: #fdfba2;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f978",
  "rgb": {
    "r": 248,
    "g": 249,
    "b": 120
  },
  "hsl": {
    "h": 60.465,
    "s": 91.489,
    "l": 72.353
  },
  "oklch": {
    "l": 0.95623,
    "c": 0.15122,
    "h": 109.4
  },
  "luminance": 0.89064
}

Semantic roles & 50–950 ramp

primary
#F8F978
secondary
#4140D5
accent
#00E602
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#18170F
muted
#868580

Preview Lab

Preview with #F8F978

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

Preview Lab → · Contrast checker → · Palette generator →

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