#F8EF8A#F8EF8A

#F8EF8A is a very light, vivid yellow. Relative luminance 0.835; OKLCH L 93.8% C 0.123 H 104.0°. Best body text is #000000 at 17.70:1 contrast (WCAG AA passes).

Color values

HEX#F8EF8A
RGBrgb(248, 239, 138)
HSLhsl(55, 89%, 76%)
HSVhsv(55, 44%, 97%)
CMYKcmyk(0%, 3.6%, 44.4%, 2.7%)
CIE-LABlab(93.24, -10.56, 49.73)
CIE-LCHlch(93.24, 50.84, 101.99°)
OKLaboklab(93.81% -0.0299 0.1196)
OKLCHoklch(93.81% 0.123 104)
XYZxyz(74.1670, 83.5265, 36.2552)
Luminance0.8352 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8EF8A #8A93F8
analogous
#F8B88A #F8EF8A #CAF88A
triadic
#F8EF8A #8AF8EF #EF8AF8
tetradic
#F8EF8A #8AF8B8 #8A93F8 #F88ACA
square
#F8EF8A #8AF8B8 #8A93F8 #F88ACA
split-complementary
#F8EF8A #8ACAF8 #B88AF8
monochromatic
#F1DF17 #F5E750 #F8EF8A #FBF7C4 #FDFBE2

Accessibility & contrast

On white

1.19
#F8EF8A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.70
#F8EF8A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8EF8A
17.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8EF8A#FFFFFF#000000##000000
##F8EF8A1.001.1917.7017.70
#FFFFFF1.191.0021.0021.00
#00000017.7021.001.001.00
##00000017.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE982
Deuteranopia (green-blind)
#FFEE8E
Tritanopia (blue-blind)
#FFE3D7
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #f8ef8a;
/* rgb */ color: rgb(248, 239, 138);
/* oklch */ color: oklch(93.8% 0.123 104.0);
Tailwind
colors: {
  custom: {
    50: '#fcf4ae',
    500: '#f8ef8a',
    950: '#000000',
  },
}
SCSS
$custom: #f8ef8a;
$custom-light: #fcf4ae;
$custom-dark: #000000;
JSON
{
  "hex": "#f8ef8a",
  "rgb": {
    "r": 248,
    "g": 239,
    "b": 138
  },
  "hsl": {
    "h": 55.091,
    "s": 88.71,
    "l": 75.686
  },
  "oklch": {
    "l": 0.93809,
    "c": 0.12327,
    "h": 104
  },
  "luminance": 0.83524
}

Semantic roles & 50–950 ramp

primary
#F8EF8A
secondary
#505BD6
accent
#13E500
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #F8EF8A

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

Preview Lab → · Contrast checker → · Palette generator →

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