#F0D978#F0D978

#F0D978 is a very light, vivid yellow. Relative luminance 0.695; OKLCH L 88.4% C 0.120 H 96.3°. Best body text is #000000 at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#F0D978
RGBrgb(240, 217, 120)
HSLhsl(49, 80%, 71%)
HSVhsv(49, 50%, 94%)
CMYKcmyk(0%, 9.6%, 50%, 5.9%)
CIE-LABlab(86.76, -4.35, 50.28)
CIE-LCHlch(86.76, 50.47, 94.94°)
OKLaboklab(88.44% -0.0133 0.1196)
OKLCHoklch(88.44% 0.12 96.3)
XYZxyz(64.1403, 69.5096, 27.8038)
Luminance0.6951 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D978 #788FF0
analogous
#F09D78 #F0D978 #CBF078
triadic
#F0D978 #78F0D9 #D978F0
tetradic
#F0D978 #78F09D #788FF0 #F078CB
square
#F0D978 #78F09D #788FF0 #F078CB
split-complementary
#F0D978 #78CBF0 #9D78F0
monochromatic
#D6B118 #EAC941 #F0D978 #F6E9AF #FCF7E3

Accessibility & contrast

On white

1.41
#F0D978 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.90
#F0D978 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D978
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D978#FFFFFF#000000##000000
##F0D9781.001.4114.9014.90
#FFFFFF1.411.0021.0021.00
#00000014.9021.001.001.00
##00000014.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#EAD570
Deuteranopia (green-blind)
#F0DD7C
Tritanopia (blue-blind)
#FFCCC2
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #f0d978;
/* rgb */ color: rgb(240, 217, 120);
/* oklch */ color: oklch(88.4% 0.120 96.3);
Tailwind
colors: {
  custom: {
    50: '#f7e4a1',
    500: '#f0d978',
    950: '#000000',
  },
}
SCSS
$custom: #f0d978;
$custom-light: #f7e4a1;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d978",
  "rgb": {
    "r": 240,
    "g": 217,
    "b": 120
  },
  "hsl": {
    "h": 48.5,
    "s": 80,
    "l": 70.588
  },
  "oklch": {
    "l": 0.88436,
    "c": 0.12034,
    "h": 96.3
  },
  "luminance": 0.69507
}

Semantic roles & 50–950 ramp

primary
#F0D978
secondary
#425CCA
accent
#32DC09
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#17150F
muted
#858480

Preview Lab

Preview with #F0D978

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

Preview Lab → · Contrast checker → · Palette generator →

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