#F8D972#F8D972

#F8D972 is a very light, vivid yellow. Relative luminance 0.708; OKLCH L 89.1% C 0.127 H 92.9°. Best body text is #000000 at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#F8D972
RGBrgb(248, 217, 114)
HSLhsl(46, 91%, 71%)
HSVhsv(46, 54%, 97%)
CMYKcmyk(0%, 12.5%, 54%, 2.7%)
CIE-LABlab(87.39, -1.62, 54.05)
CIE-LCHlch(87.39, 54.08, 91.71°)
OKLaboklab(89.08% -0.0065 0.1272)
OKLCHoklch(89.08% 0.127 92.9)
XYZxyz(66.5641, 70.8002, 26.0760)
Luminance0.7080 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8D972 #7291F8
analogous
#F89672 #F8D972 #D4F872
triadic
#F8D972 #72F8D9 #D972F8
tetradic
#F8D972 #72F896 #7291F8 #F872D4
square
#F8D972 #72F896 #7291F8 #F872D4
split-complementary
#F8D972 #72D4F8 #9672F8
monochromatic
#E4B20B #F5C938 #F8D972 #FBE9AC #FEF7E2

Accessibility & contrast

On white

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

On black

15.16
#F8D972 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8D972
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8D972#FFFFFF#000000##000000
##F8D9721.001.3915.1615.16
#FFFFFF1.391.0021.0021.00
#00000015.1621.001.001.00
##00000015.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#ECD669
Deuteranopia (green-blind)
#F4DF76
Tritanopia (blue-blind)
#FFCBC1
Achromatopsia (no color)
#DBDBDB

Design tokens & code

CSS
--color: #f8d972;
/* rgb */ color: rgb(248, 217, 114);
/* oklch */ color: oklch(89.1% 0.127 92.9);
Tailwind
colors: {
  custom: {
    50: '#fde49d',
    500: '#f8d972',
    950: '#000000',
  },
}
SCSS
$custom: #f8d972;
$custom-light: #fde49d;
$custom-dark: #000000;
JSON
{
  "hex": "#f8d972",
  "rgb": {
    "r": 248,
    "g": 217,
    "b": 114
  },
  "hsl": {
    "h": 46.119,
    "s": 90.541,
    "l": 70.98
  },
  "oklch": {
    "l": 0.89079,
    "c": 0.12738,
    "h": 92.9
  },
  "luminance": 0.70797
}

Semantic roles & 50–950 ramp

primary
#F8D972
secondary
#3B5ED3
accent
#35E600
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F

Preview Lab

Preview with #F8D972

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

Preview Lab → · Contrast checker → · Palette generator →

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