#F8E97D#F8E97D

#F8E97D is a very light, vivid yellow. Relative luminance 0.797; OKLCH L 92.4% C 0.130 H 101.5°. Best body text is #000000 at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#F8E97D
RGBrgb(248, 233, 125)
HSLhsl(53, 90%, 73%)
HSVhsv(53, 50%, 97%)
CMYKcmyk(0%, 6%, 49.6%, 2.7%)
CIE-LABlab(91.56, -8.76, 53.85)
CIE-LCHlch(91.56, 54.56, 99.24°)
OKLaboklab(92.42% -0.0259 0.1278)
OKLCHoklch(92.42% 0.13 101.5)
XYZxyz(71.5540, 79.7174, 31.0159)
Luminance0.7972 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E97D #7D8CF8
analogous
#F8AB7D #F8E97D #C9F87D
triadic
#F8E97D #7DF8E9 #E97DF8
tetradic
#F8E97D #7DF8AB #7D8CF8 #F87DC9
square
#F8E97D #7DF8AB #7D8CF8 #F87DC9
split-complementary
#F8E97D #7DC9F8 #AB7DF8
monochromatic
#EED20D #F5DF43 #F8E97D #FBF3B7 #FDFAE2

Accessibility & contrast

On white

1.24
#F8E97D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.94
#F8E97D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E97D
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E97D#FFFFFF#000000##000000
##F8E97D1.001.2416.9416.94
#FFFFFF1.241.0021.0021.00
#00000016.9421.001.001.00
##00000016.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAE373
Deuteranopia (green-blind)
#FFEA82
Tritanopia (blue-blind)
#FFDCD0
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #f8e97d;
/* rgb */ color: rgb(248, 233, 125);
/* oklch */ color: oklch(92.4% 0.130 101.5);
Tailwind
colors: {
  custom: {
    50: '#fdefa5',
    500: '#f8e97d',
    950: '#000000',
  },
}
SCSS
$custom: #f8e97d;
$custom-light: #fdefa5;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e97d",
  "rgb": {
    "r": 248,
    "g": 233,
    "b": 125
  },
  "hsl": {
    "h": 52.683,
    "s": 89.781,
    "l": 73.137
  },
  "oklch": {
    "l": 0.9242,
    "c": 0.13036,
    "h": 101.5
  },
  "luminance": 0.79715
}

Semantic roles & 50–950 ramp

primary
#F8E97D
secondary
#4556D4
accent
#1CE600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #F8E97D

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

Preview Lab → · Contrast checker → · Palette generator →

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