#F5D978#F5D978

#F5D978 is a very light, vivid yellow. Relative luminance 0.704; OKLCH L 88.9% C 0.121 H 93.7°. Best body text is #000000 at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#F5D978
RGBrgb(245, 217, 120)
HSLhsl(47, 86%, 72%)
HSVhsv(47, 51%, 96%)
CMYKcmyk(0%, 11.4%, 51%, 3.9%)
CIE-LABlab(87.19, -2.34, 50.91)
CIE-LCHlch(87.19, 50.96, 92.63°)
OKLaboklab(88.88% -0.0077 0.1209)
OKLCHoklch(88.88% 0.121 93.7)
XYZxyz(65.8615, 70.3971, 27.8845)
Luminance0.7039 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5D978 #7894F5
analogous
#F59B78 #F5D978 #D3F578
triadic
#F5D978 #78F5D9 #D978F5
tetradic
#F5D978 #78F59B #7894F5 #F578D3
square
#F5D978 #78F59B #7894F5 #F578D3
split-complementary
#F5D978 #78D3F5 #9B78F5
monochromatic
#E2B311 #F1C93F #F5D978 #F9E9B1 #FDF7E3

Accessibility & contrast

On white

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

On black

15.08
#F5D978 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5D978
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5D978#FFFFFF#000000##000000
##F5D9781.001.3915.0815.08
#FFFFFF1.391.0021.0021.00
#00000015.0821.001.001.00
##00000015.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD570
Deuteranopia (green-blind)
#F2DE7C
Tritanopia (blue-blind)
#FFCCC2
Achromatopsia (no color)
#DADADA

Design tokens & code

CSS
--color: #f5d978;
/* rgb */ color: rgb(245, 217, 120);
/* oklch */ color: oklch(88.9% 0.121 93.7);
Tailwind
colors: {
  custom: {
    50: '#fbe4a1',
    500: '#f5d978',
    950: '#000000',
  },
}
SCSS
$custom: #f5d978;
$custom-light: #fbe4a1;
$custom-dark: #000000;
JSON
{
  "hex": "#f5d978",
  "rgb": {
    "r": 245,
    "g": 217,
    "b": 120
  },
  "hsl": {
    "h": 46.56,
    "s": 86.207,
    "l": 71.569
  },
  "oklch": {
    "l": 0.88884,
    "c": 0.12117,
    "h": 93.7
  },
  "luminance": 0.70394
}

Semantic roles & 50–950 ramp

primary
#F5D978
secondary
#4161D0
accent
#35E303
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150F
muted
#868480

Preview Lab

Preview with #F5D978

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

Preview Lab → · Contrast checker → · Palette generator →

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