#F8E470#F8E470

#F8E470 is a very light, vivid yellow. Relative luminance 0.766; OKLCH L 91.3% C 0.138 H 99.7°. Best body text is #000000 at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#F8E470
RGBrgb(248, 228, 112)
HSLhsl(51, 91%, 71%)
HSVhsv(51, 55%, 97%)
CMYKcmyk(0%, 8.1%, 54.8%, 2.7%)
CIE-LABlab(90.14, -7.32, 58.20)
CIE-LCHlch(90.14, 58.66, 97.17°)
OKLaboklab(91.25% -0.0232 0.136)
OKLCHoklch(91.25% 0.138 99.7)
XYZxyz(69.3819, 76.6158, 26.4597)
Luminance0.7661 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E470 #7084F8
analogous
#F8A070 #F8E470 #C8F870
triadic
#F8E470 #70F8E4 #E470F8
tetradic
#F8E470 #70F8A0 #7084F8 #F870C8
square
#F8E470 #70F8A0 #7084F8 #F870C8
split-complementary
#F8E470 #70C8F8 #A070F8
monochromatic
#E3C30B #F5D936 #F8E470 #FBEFAA #FEF9E2

Accessibility & contrast

On white

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

On black

16.32
#F8E470 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E470
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E470#FFFFFF#000000##000000
##F8E4701.001.2916.3216.32
#FFFFFF1.291.0021.0021.00
#00000016.3221.001.001.00
##00000016.3221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f8e470;
/* rgb */ color: rgb(248, 228, 112);
/* oklch */ color: oklch(91.3% 0.138 99.7);
Tailwind
colors: {
  custom: {
    50: '#fdec9c',
    500: '#f8e470',
    950: '#000000',
  },
}
SCSS
$custom: #f8e470;
$custom-light: #fdec9c;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e470",
  "rgb": {
    "r": 248,
    "g": 228,
    "b": 112
  },
  "hsl": {
    "h": 51.176,
    "s": 90.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.91254,
    "c": 0.13796,
    "h": 99.7
  },
  "luminance": 0.76613
}

Semantic roles & 50–950 ramp

primary
#F8E470
secondary
#3950D3
accent
#22E600
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F8E470

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

Preview Lab → · Contrast checker → · Palette generator →

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