#F8EA97#F8EA97

#F8EA97 is a very light, moderate yellow. Relative luminance 0.810; OKLCH L 93.0% C 0.104 H 99.9°. Best body text is #000000 at 17.21:1 contrast (WCAG AA passes).

Color values

HEX#F8EA97
RGBrgb(248, 234, 151)
HSLhsl(51, 87%, 78%)
HSVhsv(51, 39%, 97%)
CMYKcmyk(0%, 5.6%, 39.1%, 2.7%)
CIE-LABlab(92.15, -6.76, 42.00)
CIE-LCHlch(92.15, 42.54, 99.14°)
OKLaboklab(93% -0.0179 0.1028)
OKLCHoklch(93% 0.104 99.9)
XYZxyz(73.7215, 81.0386, 41.0308)
Luminance0.8104 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8EA97 #97A5F8
analogous
#F8B997 #F8EA97 #D5F897
triadic
#F8EA97 #97F8EA #EA97F8
tetradic
#F8EA97 #97F8B9 #97A5F8 #F897D5
square
#F8EA97 #97F8B9 #97A5F8 #F897D5
split-complementary
#F8EA97 #97D5F8 #B997F8
monochromatic
#F0D324 #F4DE5E #F8EA97 #FCF6D0 #FDF9E2

Accessibility & contrast

On white

1.22
#F8EA97 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.21
#F8EA97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8EA97
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8EA97#FFFFFF#000000##000000
##F8EA971.001.2217.2117.21
#FFFFFF1.221.0021.0021.00
#00000017.2121.001.001.00
##00000017.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#F9E591
Deuteranopia (green-blind)
#FDEB9A
Tritanopia (blue-blind)
#FFDFD5
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #f8ea97;
/* rgb */ color: rgb(248, 234, 151);
/* oklch */ color: oklch(93.0% 0.104 99.9);
Tailwind
colors: {
  custom: {
    50: '#fcf0b6',
    500: '#f8ea97',
    950: '#000000',
  },
}
SCSS
$custom: #f8ea97;
$custom-light: #fcf0b6;
$custom-dark: #000000;
JSON
{
  "hex": "#f8ea97",
  "rgb": {
    "r": 248,
    "g": 234,
    "b": 151
  },
  "hsl": {
    "h": 51.34,
    "s": 87.387,
    "l": 78.235
  },
  "oklch": {
    "l": 0.92998,
    "c": 0.10437,
    "h": 99.9
  },
  "luminance": 0.81036
}

Semantic roles & 50–950 ramp

primary
#F8EA97
secondary
#5C6DD8
accent
#22E402
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181611
muted
#868581

Preview Lab

Preview with #F8EA97

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

Preview Lab → · Contrast checker → · Palette generator →

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