#F8ED8A#F8ED8A

#F8ED8A is a very light, vivid yellow. Relative luminance 0.824; OKLCH L 93.4% C 0.121 H 102.9°. Best body text is #000000 at 17.47:1 contrast (WCAG AA passes).

Color values

HEX#F8ED8A
RGBrgb(248, 237, 138)
HSLhsl(54, 89%, 76%)
HSVhsv(54, 44%, 97%)
CMYKcmyk(0%, 4.4%, 44.4%, 2.7%)
CIE-LABlab(92.73, -9.57, 49.10)
CIE-LCHlch(92.73, 50.02, 101.03°)
OKLaboklab(93.4% -0.027 0.1182)
OKLCHoklch(93.4% 0.121 102.9)
XYZxyz(73.5847, 82.3620, 36.0611)
Luminance0.8236 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8ED8A #8A95F8
analogous
#F8B68A #F8ED8A #CCF88A
triadic
#F8ED8A #8AF8ED #ED8AF8
tetradic
#F8ED8A #8AF8B6 #8A95F8 #F88ACC
square
#F8ED8A #8AF8B6 #8A95F8 #F88ACC
split-complementary
#F8ED8A #8ACCF8 #B68AF8
monochromatic
#F1DB17 #F5E450 #F8ED8A #FBF6C4 #FDFBE2

Accessibility & contrast

On white

1.20
#F8ED8A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.47
#F8ED8A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8ED8A
17.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8ED8A#FFFFFF#000000##000000
##F8ED8A1.001.2017.4717.47
#FFFFFF1.201.0021.0021.00
#00000017.4721.001.001.00
##00000017.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FDE782
Deuteranopia (green-blind)
#FFED8E
Tritanopia (blue-blind)
#FFE1D5
Achromatopsia (no color)
#EAEAEA

Design tokens & code

CSS
--color: #f8ed8a;
/* rgb */ color: rgb(248, 237, 138);
/* oklch */ color: oklch(93.4% 0.121 102.9);
Tailwind
colors: {
  custom: {
    50: '#fcf2ae',
    500: '#f8ed8a',
    950: '#000000',
  },
}
SCSS
$custom: #f8ed8a;
$custom-light: #fcf2ae;
$custom-dark: #000000;
JSON
{
  "hex": "#f8ed8a",
  "rgb": {
    "r": 248,
    "g": 237,
    "b": 138
  },
  "hsl": {
    "h": 54,
    "s": 88.71,
    "l": 75.686
  },
  "oklch": {
    "l": 0.93404,
    "c": 0.12123,
    "h": 102.9
  },
  "luminance": 0.8236
}

Semantic roles & 50–950 ramp

primary
#F8ED8A
secondary
#505DD6
accent
#17E500
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181610
muted
#868581

Preview Lab

Preview with #F8ED8A

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

Preview Lab → · Contrast checker → · Palette generator →

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