#F8EC8A#F8EC8A

#F8EC8A is a very light, vivid yellow. Relative luminance 0.818; OKLCH L 93.2% C 0.120 H 102.3°. Best body text is #000000 at 17.36:1 contrast (WCAG AA passes).

Color values

HEX#F8EC8A
RGBrgb(248, 236, 138)
HSLhsl(53, 89%, 76%)
HSVhsv(53, 44%, 97%)
CMYKcmyk(0%, 4.8%, 44.4%, 2.7%)
CIE-LABlab(92.48, -9.07, 48.78)
CIE-LCHlch(92.48, 49.62, 100.54°)
OKLaboklab(93.2% -0.0256 0.1175)
OKLCHoklch(93.2% 0.12 102.3)
XYZxyz(73.2960, 81.7845, 35.9648)
Luminance0.8178 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8EC8A #8A96F8
analogous
#F8B58A #F8EC8A #CDF88A
triadic
#F8EC8A #8AF8EC #EC8AF8
tetradic
#F8EC8A #8AF8B5 #8A96F8 #F88ACD
square
#F8EC8A #8AF8B5 #8A96F8 #F88ACD
split-complementary
#F8EC8A #8ACDF8 #B58AF8
monochromatic
#F1D917 #F5E350 #F8EC8A #FBF5C4 #FDFAE2

Accessibility & contrast

On white

1.21
#F8EC8A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.36
#F8EC8A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8EC8A
17.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8EC8A#FFFFFF#000000##000000
##F8EC8A1.001.2117.3617.36
#FFFFFF1.211.0021.0021.00
#00000017.3621.001.001.00
##00000017.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FCE682
Deuteranopia (green-blind)
#FFEC8E
Tritanopia (blue-blind)
#FFE0D4
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #f8ec8a;
/* rgb */ color: rgb(248, 236, 138);
/* oklch */ color: oklch(93.2% 0.120 102.3);
Tailwind
colors: {
  custom: {
    50: '#fcf2ae',
    500: '#f8ec8a',
    950: '#000000',
  },
}
SCSS
$custom: #f8ec8a;
$custom-light: #fcf2ae;
$custom-dark: #000000;
JSON
{
  "hex": "#f8ec8a",
  "rgb": {
    "r": 248,
    "g": 236,
    "b": 138
  },
  "hsl": {
    "h": 53.455,
    "s": 88.71,
    "l": 75.686
  },
  "oklch": {
    "l": 0.93202,
    "c": 0.12024,
    "h": 102.3
  },
  "luminance": 0.81782
}

Semantic roles & 50–950 ramp

primary
#F8EC8A
secondary
#505FD6
accent
#19E500
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181610
muted
#868581

Preview Lab

Preview with #F8EC8A

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

Preview Lab → · Contrast checker → · Palette generator →

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