#F8EF97#F8EF97

#F8EF97 is a very light, moderate yellow. Relative luminance 0.839; OKLCH L 94.0% C 0.109 H 103.2°. Best body text is #000000 at 17.78:1 contrast (WCAG AA passes).

Color values

HEX#F8EF97
RGBrgb(248, 239, 151)
HSLhsl(54, 87%, 78%)
HSVhsv(54, 39%, 97%)
CMYKcmyk(0%, 3.6%, 39.1%, 2.7%)
CIE-LABlab(93.42, -9.25, 43.63)
CIE-LCHlch(93.42, 44.60, 101.97°)
OKLaboklab(94% -0.025 0.1066)
OKLCHoklch(94% 0.109 103.2)
XYZxyz(75.1651, 83.9258, 41.5119)
Luminance0.8392 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8EF97 #97A0F8
analogous
#F8BE97 #F8EF97 #D0F897
triadic
#F8EF97 #97F8EF #EF97F8
tetradic
#F8EF97 #97F8BE #97A0F8 #F897D0
square
#F8EF97 #97F8BE #97A0F8 #F897D0
split-complementary
#F8EF97 #97D0F8 #BE97F8
monochromatic
#F0DD24 #F4E65E #F8EF97 #FCF8D0 #FDFBE2

Accessibility & contrast

On white

1.18
#F8EF97 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.78
#F8EF97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8EF97
17.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8EF97#FFFFFF#000000##000000
##F8EF971.001.1817.7817.78
#FFFFFF1.181.0021.0021.00
#00000017.7821.001.001.00
##00000017.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FEE990
Deuteranopia (green-blind)
#FFEE9B
Tritanopia (blue-blind)
#FFE4D9
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #f8ef97;
/* rgb */ color: rgb(248, 239, 151);
/* oklch */ color: oklch(94.0% 0.109 103.2);
Tailwind
colors: {
  custom: {
    50: '#fcf4b6',
    500: '#f8ef97',
    950: '#000000',
  },
}
SCSS
$custom: #f8ef97;
$custom-light: #fcf4b6;
$custom-dark: #000000;
JSON
{
  "hex": "#f8ef97",
  "rgb": {
    "r": 248,
    "g": 239,
    "b": 151
  },
  "hsl": {
    "h": 54.433,
    "s": 87.387,
    "l": 78.235
  },
  "oklch": {
    "l": 0.94004,
    "c": 0.10945,
    "h": 103.2
  },
  "luminance": 0.83924
}

Semantic roles & 50–950 ramp

primary
#F8EF97
secondary
#5C67D8
accent
#17E402
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #F8EF97

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

Preview Lab → · Contrast checker → · Palette generator →

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