#F8E472#F8E472

#F8E472 is a very light, vivid yellow. Relative luminance 0.767; OKLCH L 91.3% C 0.136 H 99.5°. Best body text is #000000 at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#F8E472
RGBrgb(248, 228, 114)
HSLhsl(51, 91%, 71%)
HSVhsv(51, 54%, 97%)
CMYKcmyk(0%, 8.1%, 54%, 2.7%)
CIE-LABlab(90.17, -7.17, 57.31)
CIE-LCHlch(90.17, 57.76, 97.13°)
OKLaboklab(91.28% -0.0225 0.1343)
OKLCHoklch(91.28% 0.136 99.5)
XYZxyz(69.4945, 76.6609, 27.0527)
Luminance0.7666 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E472 #7286F8
analogous
#F8A172 #F8E472 #C9F872
triadic
#F8E472 #72F8E4 #E472F8
tetradic
#F8E472 #72F8A1 #7286F8 #F872C9
square
#F8E472 #72F8A1 #7286F8 #F872C9
split-complementary
#F8E472 #72C9F8 #A172F8
monochromatic
#E4C40B #F5D938 #F8E472 #FBEFAC #FEF9E2

Accessibility & contrast

On white

1.29
#F8E472 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.33
#F8E472 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E472
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E472#FFFFFF#000000##000000
##F8E4721.001.2916.3316.33
#FFFFFF1.291.0021.0021.00
#00000016.3321.001.001.00
##00000016.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#F6DF67
Deuteranopia (green-blind)
#FCE677
Tritanopia (blue-blind)
#FFD6CA
Achromatopsia (no color)
#E3E3E3

Design tokens & code

CSS
--color: #f8e472;
/* rgb */ color: rgb(248, 228, 114);
/* oklch */ color: oklch(91.3% 0.136 99.5);
Tailwind
colors: {
  custom: {
    50: '#fdec9d',
    500: '#f8e472',
    950: '#000000',
  },
}
SCSS
$custom: #f8e472;
$custom-light: #fdec9d;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e472",
  "rgb": {
    "r": 248,
    "g": 228,
    "b": 114
  },
  "hsl": {
    "h": 51.045,
    "s": 90.541,
    "l": 70.98
  },
  "oklch": {
    "l": 0.91277,
    "c": 0.13616,
    "h": 99.5
  },
  "luminance": 0.76658
}

Semantic roles & 50–950 ramp

primary
#F8E472
secondary
#3B52D3
accent
#22E600
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160F
muted
#868480

Preview Lab

Preview with #F8E472

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

Preview Lab → · Contrast checker → · Palette generator →

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