#F8D974#F8D974

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

Color values

HEX#F8D974
RGBrgb(248, 217, 116)
HSLhsl(46, 90%, 71%)
HSVhsv(46, 53%, 97%)
CMYKcmyk(0%, 12.5%, 53.2%, 2.7%)
CIE-LABlab(87.41, -1.46, 53.14)
CIE-LCHlch(87.41, 53.16, 91.57°)
OKLaboklab(89.1% -0.0058 0.1254)
OKLCHoklch(89.1% 0.126 92.7)
XYZxyz(66.6792, 70.8462, 26.6821)
Luminance0.7084 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8D974 #7493F8
analogous
#F89774 #F8D974 #D5F874
triadic
#F8D974 #74F8D9 #D974F8
tetradic
#F8D974 #74F897 #7493F8 #F874D5
square
#F8D974 #74F897 #7493F8 #F874D5
split-complementary
#F8D974 #74D5F8 #9774F8
monochromatic
#E6B30C #F5C93A #F8D974 #FBE9AE #FEF7E2

Accessibility & contrast

On white

1.38
#F8D974 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.17
#F8D974 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8D974
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8D974#FFFFFF#000000##000000
##F8D9741.001.3815.1715.17
#FFFFFF1.381.0021.0021.00
#00000015.1721.001.001.00
##00000015.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#ECD66B
Deuteranopia (green-blind)
#F4DF78
Tritanopia (blue-blind)
#FFCBC2
Achromatopsia (no color)
#DBDBDB

Design tokens & code

CSS
--color: #f8d974;
/* rgb */ color: rgb(248, 217, 116);
/* oklch */ color: oklch(89.1% 0.126 92.7);
Tailwind
colors: {
  custom: {
    50: '#fde49e',
    500: '#f8d974',
    950: '#000000',
  },
}
SCSS
$custom: #f8d974;
$custom-light: #fde49e;
$custom-dark: #000000;
JSON
{
  "hex": "#f8d974",
  "rgb": {
    "r": 248,
    "g": 217,
    "b": 116
  },
  "hsl": {
    "h": 45.909,
    "s": 90.411,
    "l": 71.373
  },
  "oklch": {
    "l": 0.89104,
    "c": 0.12553,
    "h": 92.7
  },
  "luminance": 0.70843
}

Semantic roles & 50–950 ramp

primary
#F8D974
secondary
#3D60D3
accent
#36E600
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150F
muted
#868480

Preview Lab

Preview with #F8D974

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

Preview Lab → · Contrast checker → · Palette generator →

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