#F8E972#F8E972

#F8E972 is a very light, vivid yellow. Relative luminance 0.794; OKLCH L 92.3% C 0.141 H 102.2°. Best body text is #000000 at 16.89:1 contrast (WCAG AA passes).

Color values

HEX#F8E972
RGBrgb(248, 233, 114)
HSLhsl(53, 91%, 71%)
HSVhsv(53, 54%, 97%)
CMYKcmyk(0%, 6%, 54%, 2.7%)
CIE-LABlab(91.44, -9.66, 58.79)
CIE-LCHlch(91.44, 59.58, 99.33°)
OKLaboklab(92.29% -0.0297 0.1375)
OKLCHoklch(92.29% 0.141 102.2)
XYZxyz(70.8899, 79.4517, 27.5179)
Luminance0.7945 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E972 #7281F8
analogous
#F8A672 #F8E972 #C4F872
triadic
#F8E972 #72F8E9 #E972F8
tetradic
#F8E972 #72F8A6 #7281F8 #F872C4
square
#F8E972 #72F8A6 #7281F8 #F872C4
split-complementary
#F8E972 #72C4F8 #A672F8
monochromatic
#E4CC0B #F5E038 #F8E972 #FBF2AC #FEFAE2

Accessibility & contrast

On white

1.24
#F8E972 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.89
#F8E972 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E972
16.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E972#FFFFFF#000000##000000
##F8E9721.001.2416.8916.89
#FFFFFF1.241.0021.0021.00
#00000016.8921.001.001.00
##00000016.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FBE366
Deuteranopia (green-blind)
#FFEA78
Tritanopia (blue-blind)
#FFDBCE
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #f8e972;
/* rgb */ color: rgb(248, 233, 114);
/* oklch */ color: oklch(92.3% 0.141 102.2);
Tailwind
colors: {
  custom: {
    50: '#fdef9e',
    500: '#f8e972',
    950: '#000000',
  },
}
SCSS
$custom: #f8e972;
$custom-light: #fdef9e;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e972",
  "rgb": {
    "r": 248,
    "g": 233,
    "b": 114
  },
  "hsl": {
    "h": 53.284,
    "s": 90.541,
    "l": 70.98
  },
  "oklch": {
    "l": 0.92287,
    "c": 0.14065,
    "h": 102.2
  },
  "luminance": 0.79449
}

Semantic roles & 50–950 ramp

primary
#F8E972
secondary
#3B4CD3
accent
#1AE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18160F
muted
#868580

Preview Lab

Preview with #F8E972

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

Preview Lab → · Contrast checker → · Palette generator →

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