#F8E474#F8E474

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

Color values

HEX#F8E474
RGBrgb(248, 228, 116)
HSLhsl(51, 90%, 71%)
HSVhsv(51, 53%, 97%)
CMYKcmyk(0%, 8.1%, 53.2%, 2.7%)
CIE-LABlab(90.19, -7.01, 56.42)
CIE-LCHlch(90.19, 56.85, 97.08°)
OKLaboklab(91.3% -0.0218 0.1325)
OKLCHoklch(91.3% 0.134 99.4)
XYZxyz(69.6095, 76.7069, 27.6588)
Luminance0.7670 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E474 #7488F8
analogous
#F8A274 #F8E474 #CAF874
triadic
#F8E474 #74F8E4 #E474F8
tetradic
#F8E474 #74F8A2 #7488F8 #F874CA
square
#F8E474 #74F8A2 #7488F8 #F874CA
split-complementary
#F8E474 #74CAF8 #A274F8
monochromatic
#E6C50C #F5D93A #F8E474 #FBEFAE #FEF9E2

Accessibility & contrast

On white

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

On black

16.34
#F8E474 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E474
16.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E474#FFFFFF#000000##000000
##F8E4741.001.2916.3416.34
#FFFFFF1.291.0021.0021.00
#00000016.3421.001.001.00
##00000016.3421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f8e474;
/* rgb */ color: rgb(248, 228, 116);
/* oklch */ color: oklch(91.3% 0.134 99.4);
Tailwind
colors: {
  custom: {
    50: '#fdec9f',
    500: '#f8e474',
    950: '#000000',
  },
}
SCSS
$custom: #f8e474;
$custom-light: #fdec9f;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e474",
  "rgb": {
    "r": 248,
    "g": 228,
    "b": 116
  },
  "hsl": {
    "h": 50.909,
    "s": 90.411,
    "l": 71.373
  },
  "oklch": {
    "l": 0.91301,
    "c": 0.13433,
    "h": 99.4
  },
  "luminance": 0.76704
}

Semantic roles & 50–950 ramp

primary
#F8E474
secondary
#3D54D3
accent
#23E600
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160F
muted
#868480

Preview Lab

Preview with #F8E474

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

Preview Lab → · Contrast checker → · Palette generator →

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