#F8F972#F8F972

#F8F972 is a very light, vivid yellow. Relative luminance 0.889; OKLCH L 95.6% C 0.157 H 109.4°. Best body text is #000000 at 18.78:1 contrast (WCAG AA passes).

Color values

HEX#F8F972
RGBrgb(248, 249, 114)
HSLhsl(60, 92%, 71%)
HSVhsv(60, 54%, 98%)
CMYKcmyk(0.4%, 0%, 54.2%, 2.4%)
CIE-LABlab(95.55, -17.49, 63.50)
CIE-LCHlch(95.55, 65.87, 105.40°)
OKLaboklab(95.56% -0.052 0.1476)
OKLCHoklch(95.56% 0.157 109.4)
XYZxyz(75.6263, 88.9246, 29.0967)
Luminance0.8892 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F972 #7372F9
analogous
#F9B672 #F8F972 #B4F972
triadic
#F8F972 #72F8F9 #F972F8
tetradic
#F8F972 #72F9B6 #7372F9 #F972B4
square
#F8F972 #72F9B6 #7372F9 #F972B4
split-complementary
#F8F972 #72B4F9 #B672F9
monochromatic
#E5E70A #F5F737 #F8F972 #FBFBAD #FEFEE2

Accessibility & contrast

On white

1.12
#F8F972 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.78
#F8F972 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F972
18.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F972#FFFFFF#000000##000000
##F8F9721.001.1218.7818.78
#FFFFFF1.121.0021.0021.00
#00000018.7821.001.001.00
##00000018.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF064
Deuteranopia (green-blind)
#FFF479
Tritanopia (blue-blind)
#FFEBDB
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #f8f972;
/* rgb */ color: rgb(248, 249, 114);
/* oklch */ color: oklch(95.6% 0.157 109.4);
Tailwind
colors: {
  custom: {
    50: '#fdfb9f',
    500: '#f8f972',
    950: '#000000',
  },
}
SCSS
$custom: #f8f972;
$custom-light: #fdfb9f;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f972",
  "rgb": {
    "r": 248,
    "g": 249,
    "b": 114
  },
  "hsl": {
    "h": 60.444,
    "s": 91.837,
    "l": 71.176
  },
  "oklch": {
    "l": 0.95557,
    "c": 0.15653,
    "h": 109.4
  },
  "luminance": 0.88923
}

Semantic roles & 50–950 ramp

primary
#F8F972
secondary
#3C3BD4
accent
#00E602
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F8F972

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

Preview Lab → · Contrast checker → · Palette generator →

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