#F8F472#F8F472

#F8F472 is a very light, vivid yellow. Relative luminance 0.859; OKLCH L 94.5% C 0.151 H 107.4°. Best body text is #000000 at 18.17:1 contrast (WCAG AA passes).

Color values

HEX#F8F472
RGBrgb(248, 244, 114)
HSLhsl(58, 91%, 71%)
HSVhsv(58, 54%, 97%)
CMYKcmyk(0%, 1.6%, 54%, 2.7%)
CIE-LABlab(94.26, -15.07, 62.03)
CIE-LCHlch(94.26, 63.84, 103.65°)
OKLaboklab(94.53% -0.0451 0.1445)
OKLCHoklch(94.53% 0.151 107.4)
XYZxyz(74.1014, 85.8748, 28.5884)
Luminance0.8587 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F472 #7276F8
analogous
#F8B172 #F8F472 #B9F872
triadic
#F8F472 #72F8F4 #F472F8
tetradic
#F8F472 #72F8B1 #7276F8 #F872B9
square
#F8F472 #72F8B1 #7276F8 #F872B9
split-complementary
#F8F472 #72B9F8 #B172F8
monochromatic
#E4DE0B #F5EF38 #F8F472 #FBF9AC #FEFDE2

Accessibility & contrast

On white

1.16
#F8F472 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.17
#F8F472 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F472
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F472#FFFFFF#000000##000000
##F8F4721.001.1618.1718.17
#FFFFFF1.161.0021.0021.00
#00000018.1721.001.001.00
##00000018.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC65
Deuteranopia (green-blind)
#FFF179
Tritanopia (blue-blind)
#FFE6D7
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #f8f472;
/* rgb */ color: rgb(248, 244, 114);
/* oklch */ color: oklch(94.5% 0.151 107.4);
Tailwind
colors: {
  custom: {
    50: '#fdf79e',
    500: '#f8f472',
    950: '#000000',
  },
}
SCSS
$custom: #f8f472;
$custom-light: #fdf79e;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f472",
  "rgb": {
    "r": 248,
    "g": 244,
    "b": 114
  },
  "hsl": {
    "h": 58.209,
    "s": 90.541,
    "l": 70.98
  },
  "oklch": {
    "l": 0.94529,
    "c": 0.15136,
    "h": 107.4
  },
  "luminance": 0.85873
}

Semantic roles & 50–950 ramp

primary
#F8F472
secondary
#3B40D3
accent
#07E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F8F472

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

Preview Lab → · Contrast checker → · Palette generator →

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