#F8EC99#F8EC99

#F8EC99 is a very light, moderate yellow. Relative luminance 0.822; OKLCH L 93.4% C 0.104 H 101.1°. Best body text is #000000 at 17.45:1 contrast (WCAG AA passes).

Color values

HEX#F8EC99
RGBrgb(248, 236, 153)
HSLhsl(52, 87%, 79%)
HSVhsv(52, 38%, 97%)
CMYKcmyk(0%, 4.8%, 38.3%, 2.7%)
CIE-LABlab(92.68, -7.55, 41.70)
CIE-LCHlch(92.68, 42.38, 100.26°)
OKLaboklab(93.43% -0.02 0.1022)
OKLCHoklch(93.43% 0.104 101.1)
XYZxyz(74.4579, 82.2493, 42.0843)
Luminance0.8225 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8EC99 #99A5F8
analogous
#F8BC99 #F8EC99 #D4F899
triadic
#F8EC99 #99F8EC #EC99F8
tetradic
#F8EC99 #99F8BC #99A5F8 #F899D4
square
#F8EC99 #99F8BC #99A5F8 #F899D4
split-complementary
#F8EC99 #99D4F8 #BC99F8
monochromatic
#F0D726 #F4E160 #F8EC99 #FCF7D2 #FDFAE2

Accessibility & contrast

On white

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

On black

17.45
#F8EC99 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8EC99
17.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8EC99#FFFFFF#000000##000000
##F8EC991.001.2017.4517.45
#FFFFFF1.201.0021.0021.00
#00000017.4521.001.001.00
##00000017.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FBE793
Deuteranopia (green-blind)
#FEEC9C
Tritanopia (blue-blind)
#FFE1D7
Achromatopsia (no color)
#EAEAEA

Design tokens & code

CSS
--color: #f8ec99;
/* rgb */ color: rgb(248, 236, 153);
/* oklch */ color: oklch(93.4% 0.104 101.1);
Tailwind
colors: {
  custom: {
    50: '#fcf2b8',
    500: '#f8ec99',
    950: '#000000',
  },
}
SCSS
$custom: #f8ec99;
$custom-light: #fcf2b8;
$custom-dark: #000000;
JSON
{
  "hex": "#f8ec99",
  "rgb": {
    "r": 248,
    "g": 236,
    "b": 153
  },
  "hsl": {
    "h": 52.421,
    "s": 87.156,
    "l": 78.627
  },
  "oklch": {
    "l": 0.93432,
    "c": 0.10416,
    "h": 101.1
  },
  "luminance": 0.82247
}

Semantic roles & 50–950 ramp

primary
#F8EC99
secondary
#5D6DD8
accent
#1EE402
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181611
muted
#868581

Preview Lab

Preview with #F8EC99

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

Preview Lab → · Contrast checker → · Palette generator →

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