#F8E974#F8E974

#F8E974 is a very light, vivid yellow. Relative luminance 0.795; OKLCH L 92.3% C 0.139 H 102.1°. Best body text is #000000 at 16.90:1 contrast (WCAG AA passes).

Color values

HEX#F8E974
RGBrgb(248, 233, 116)
HSLhsl(53, 90%, 71%)
HSVhsv(53, 53%, 97%)
CMYKcmyk(0%, 6%, 53.2%, 2.7%)
CIE-LABlab(91.46, -9.50, 57.90)
CIE-LCHlch(91.46, 58.68, 99.32°)
OKLaboklab(92.31% -0.029 0.1358)
OKLCHoklch(92.31% 0.139 102.1)
XYZxyz(71.0050, 79.4978, 28.1240)
Luminance0.7950 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E974 #7483F8
analogous
#F8A774 #F8E974 #C5F874
triadic
#F8E974 #74F8E9 #E974F8
tetradic
#F8E974 #74F8A7 #7483F8 #F874C5
square
#F8E974 #74F8A7 #7483F8 #F874C5
split-complementary
#F8E974 #74C5F8 #A774F8
monochromatic
#E6CD0C #F5E03A #F8E974 #FBF2AE #FEFAE2

Accessibility & contrast

On white

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

On black

16.90
#F8E974 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E974
16.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E974#FFFFFF#000000##000000
##F8E9741.001.2416.9016.90
#FFFFFF1.241.0021.0021.00
#00000016.9021.001.001.00
##00000016.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FBE369
Deuteranopia (green-blind)
#FFEA7A
Tritanopia (blue-blind)
#FFDBCF
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #f8e974;
/* rgb */ color: rgb(248, 233, 116);
/* oklch */ color: oklch(92.3% 0.139 102.1);
Tailwind
colors: {
  custom: {
    50: '#fdef9f',
    500: '#f8e974',
    950: '#000000',
  },
}
SCSS
$custom: #f8e974;
$custom-light: #fdef9f;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e974",
  "rgb": {
    "r": 248,
    "g": 233,
    "b": 116
  },
  "hsl": {
    "h": 53.182,
    "s": 90.411,
    "l": 71.373
  },
  "oklch": {
    "l": 0.9231,
    "c": 0.13884,
    "h": 102.1
  },
  "luminance": 0.79495
}

Semantic roles & 50–950 ramp

primary
#F8E974
secondary
#3D4ED3
accent
#1AE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18160F
muted
#868580

Preview Lab

Preview with #F8E974

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

Preview Lab → · Contrast checker → · Palette generator →

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