#F8D971#F8D971

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

Color values

HEX#F8D971
RGBrgb(248, 217, 113)
HSLhsl(46, 91%, 71%)
HSVhsv(46, 54%, 97%)
CMYKcmyk(0%, 12.5%, 54.4%, 2.7%)
CIE-LABlab(87.38, -1.69, 54.51)
CIE-LCHlch(87.38, 54.54, 91.78°)
OKLaboklab(89.07% -0.0068 0.1281)
OKLCHoklch(89.07% 0.128 93.1)
XYZxyz(66.5075, 70.7775, 25.7778)
Luminance0.7077 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8D971 #7190F8
analogous
#F89571 #F8D971 #D4F871
triadic
#F8D971 #71F8D9 #D971F8
tetradic
#F8D971 #71F895 #7190F8 #F871D4
square
#F8D971 #71F895 #7190F8 #F871D4
split-complementary
#F8D971 #71D4F8 #9571F8
monochromatic
#E3B20B #F5C937 #F8D971 #FBE9AB #FEF7E2

Accessibility & contrast

On white

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

On black

15.15
#F8D971 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8D971
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8D971#FFFFFF#000000##000000
##F8D9711.001.3915.1515.15
#FFFFFF1.391.0021.0021.00
#00000015.1521.001.001.00
##00000015.1521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f8d971;
/* rgb */ color: rgb(248, 217, 113);
/* oklch */ color: oklch(89.1% 0.128 93.1);
Tailwind
colors: {
  custom: {
    50: '#fde49c',
    500: '#f8d971',
    950: '#000000',
  },
}
SCSS
$custom: #f8d971;
$custom-light: #fde49c;
$custom-dark: #000000;
JSON
{
  "hex": "#f8d971",
  "rgb": {
    "r": 248,
    "g": 217,
    "b": 113
  },
  "hsl": {
    "h": 46.222,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.89067,
    "c": 0.12829,
    "h": 93.1
  },
  "luminance": 0.70774
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F8D971

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

Preview Lab → · Contrast checker → · Palette generator →

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