#F8E97B#F8E97B

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

Color values

HEX#F8E97B
RGBrgb(248, 233, 123)
HSLhsl(53, 90%, 73%)
HSVhsv(53, 50%, 97%)
CMYKcmyk(0%, 6%, 50.4%, 2.7%)
CIE-LABlab(91.54, -8.93, 54.76)
CIE-LCHlch(91.54, 55.48, 99.26°)
OKLaboklab(92.4% -0.0266 0.1296)
OKLCHoklch(92.4% 0.132 101.6)
XYZxyz(71.4276, 79.6668, 30.3498)
Luminance0.7966 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E97B #7B8AF8
analogous
#F8AA7B #F8E97B #C8F87B
triadic
#F8E97B #7BF8E9 #E97BF8
tetradic
#F8E97B #7BF8AA #7B8AF8 #F87BC8
square
#F8E97B #7BF8AA #7B8AF8 #F87BC8
split-complementary
#F8E97B #7BC8F8 #AA7BF8
monochromatic
#ECD10D #F5DF41 #F8E97B #FBF3B5 #FDFAE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F8E97B#FFFFFF#000000##000000
##F8E97B1.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)
#FAE371
Deuteranopia (green-blind)
#FFEA80
Tritanopia (blue-blind)
#FFDCD0
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #f8e97b;
/* rgb */ color: rgb(248, 233, 123);
/* oklch */ color: oklch(92.4% 0.132 101.6);
Tailwind
colors: {
  custom: {
    50: '#fdefa4',
    500: '#f8e97b',
    950: '#000000',
  },
}
SCSS
$custom: #f8e97b;
$custom-light: #fdefa4;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e97b",
  "rgb": {
    "r": 248,
    "g": 233,
    "b": 123
  },
  "hsl": {
    "h": 52.8,
    "s": 89.928,
    "l": 72.745
  },
  "oklch": {
    "l": 0.92395,
    "c": 0.13228,
    "h": 101.6
  },
  "luminance": 0.79664
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F8E97B

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

Preview Lab → · Contrast checker → · Palette generator →

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