#F8E97A#F8E97A

#F8E97A is a very light, vivid yellow. Relative luminance 0.796; OKLCH L 92.4% C 0.133 H 101.7°. Best body text is #000000 at 16.93:1 contrast (WCAG AA passes).

Color values

HEX#F8E97A
RGBrgb(248, 233, 122)
HSLhsl(53, 90%, 73%)
HSVhsv(53, 51%, 97%)
CMYKcmyk(0%, 6%, 50.8%, 2.7%)
CIE-LABlab(91.52, -9.02, 55.21)
CIE-LCHlch(91.52, 55.94, 99.27°)
OKLaboklab(92.38% -0.027 0.1305)
OKLCHoklch(92.38% 0.133 101.7)
XYZxyz(71.3653, 79.6419, 30.0218)
Luminance0.7964 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E97A #7A89F8
analogous
#F8AA7A #F8E97A #C8F87A
triadic
#F8E97A #7AF8E9 #E97AF8
tetradic
#F8E97A #7AF8AA #7A89F8 #F87AC8
square
#F8E97A #7AF8AA #7A89F8 #F87AC8
split-complementary
#F8E97A #7AC8F8 #AA7AF8
monochromatic
#EBD10C #F5DF40 #F8E97A #FBF3B4 #FDFAE2

Accessibility & contrast

On white

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

On black

16.93
#F8E97A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E97A
16.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E97A#FFFFFF#000000##000000
##F8E97A1.001.2416.9316.93
#FFFFFF1.241.0021.0021.00
#00000016.9321.001.001.00
##00000016.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FBE370
Deuteranopia (green-blind)
#FFEA7F
Tritanopia (blue-blind)
#FFDCCF
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #f8e97a;
/* rgb */ color: rgb(248, 233, 122);
/* oklch */ color: oklch(92.4% 0.133 101.7);
Tailwind
colors: {
  custom: {
    50: '#fdefa3',
    500: '#f8e97a',
    950: '#000000',
  },
}
SCSS
$custom: #f8e97a;
$custom-light: #fdefa3;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e97a",
  "rgb": {
    "r": 248,
    "g": 233,
    "b": 122
  },
  "hsl": {
    "h": 52.857,
    "s": 90,
    "l": 72.549
  },
  "oklch": {
    "l": 0.92382,
    "c": 0.13324,
    "h": 101.7
  },
  "luminance": 0.79639
}

Semantic roles & 50–950 ramp

primary
#F8E97A
secondary
#4253D4
accent
#1BE600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #F8E97A

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

Preview Lab → · Contrast checker → · Palette generator →

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